aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrenatofilho <renato.filho@openbossa.org>2010-09-24 15:55:20 -0300
committerrenatofilho <renato.filho@openbossa.org>2010-09-24 16:44:45 -0300
commit2bd1bab4bb37b44e5ffc94e284e67d7cfe4ce9ff (patch)
tree532405a3b6073763f6580723278ef4b63848eb8c
parent88fd0c6e0bca1cf0a25a80ba367e6ee3d59b1862 (diff)
Fixed unit test to avoid put a object child of QApplication.
This will cause assert on debug mode. Because qApp is dever destroyed. Reviewer: Hugo Parente Lima <hugo.pl@gmail.com> Luciano Wolf <luciano.wolf@openbossa.org>
-rw-r--r--tests/QtGui/keep_reference_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/QtGui/keep_reference_test.py b/tests/QtGui/keep_reference_test.py
index 310361a4a..47c7a594d 100644
--- a/tests/QtGui/keep_reference_test.py
+++ b/tests/QtGui/keep_reference_test.py
@@ -28,7 +28,7 @@ class KeepReferenceTest(UsesQApplication):
def testModelWithParent(self):
view = QTableView()
- model = TestModel(self.app)
+ model = TestModel(None)
view.setModel(model)
samemodel = view.model()
self.assertEqual(model, samemodel)