From 2bd1bab4bb37b44e5ffc94e284e67d7cfe4ce9ff Mon Sep 17 00:00:00 2001 From: renatofilho Date: Fri, 24 Sep 2010 15:55:20 -0300 Subject: 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 Luciano Wolf --- tests/QtGui/keep_reference_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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) -- cgit