diff options
Diffstat (limited to 'sources/pyside6/tests/QtWidgets/parent_method_test.py')
| -rw-r--r-- | sources/pyside6/tests/QtWidgets/parent_method_test.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/pyside6/tests/QtWidgets/parent_method_test.py b/sources/pyside6/tests/QtWidgets/parent_method_test.py index 56b109531..4f2ab2f9a 100644 --- a/sources/pyside6/tests/QtWidgets/parent_method_test.py +++ b/sources/pyside6/tests/QtWidgets/parent_method_test.py @@ -43,8 +43,10 @@ class Foo(QTableView): def __init__(self, parent=None): QTableView.__init__(self, parent) + from helper.usesqapplication import UsesQApplication + class TestParentType(UsesQApplication): def testParentType(self): @@ -56,5 +58,6 @@ class TestParentType(UsesQApplication): self.assertTrue(isinstance(w2.parentWidget(), Foo)) self.assertTrue(isinstance(w2.parent(), Foo)) + if __name__ == '__main__': unittest.main() |
