diff options
Diffstat (limited to 'sources/pyside6/tests/QtCore/bug_1019.py')
-rw-r--r-- | sources/pyside6/tests/QtCore/bug_1019.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/pyside6/tests/QtCore/bug_1019.py b/sources/pyside6/tests/QtCore/bug_1019.py index c7f1ea358..f3a37f42c 100644 --- a/sources/pyside6/tests/QtCore/bug_1019.py +++ b/sources/pyside6/tests/QtCore/bug_1019.py @@ -47,6 +47,7 @@ class MyTimer (QTimer): def slotUsedToIncreaseMethodOffset(self): pass + class MyTimer2 (MyTimer): @Slot() @@ -57,6 +58,7 @@ class MyTimer2 (MyTimer): self.startCalled = True QCoreApplication.instance().quit() + class TestBug1019 (unittest.TestCase): def testIt(self): app = QCoreApplication([]) @@ -65,5 +67,6 @@ class TestBug1019 (unittest.TestCase): app.exec_() self.assertTrue(t.startCalled) + if __name__ == "__main__": unittest.main() |