diff options
author | renatofilho <renato.filho@openbossa.org> | 2010-09-24 15:55:20 -0300 |
---|---|---|
committer | renatofilho <renato.filho@openbossa.org> | 2010-09-24 16:44:45 -0300 |
commit | 2bd1bab4bb37b44e5ffc94e284e67d7cfe4ce9ff (patch) | |
tree | 532405a3b6073763f6580723278ef4b63848eb8c /tests | |
parent | 88fd0c6e0bca1cf0a25a80ba367e6ee3d59b1862 (diff) | |
download | pyside-2bd1bab4bb37b44e5ffc94e284e67d7cfe4ce9ff.tar.gz pyside-2bd1bab4bb37b44e5ffc94e284e67d7cfe4ce9ff.tar.xz pyside-2bd1bab4bb37b44e5ffc94e284e67d7cfe4ce9ff.zip |
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>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/QtGui/keep_reference_test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/QtGui/keep_reference_test.py b/tests/QtGui/keep_reference_test.py index 310361a..47c7a59 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) |