diff options
Diffstat (limited to 'sources/pyside6/tests/QtCore/qobject_connect_notify_test.py')
-rw-r--r-- | sources/pyside6/tests/QtCore/qobject_connect_notify_test.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/pyside6/tests/QtCore/qobject_connect_notify_test.py b/sources/pyside6/tests/QtCore/qobject_connect_notify_test.py index 794eddd13..a5b44a2a1 100644 --- a/sources/pyside6/tests/QtCore/qobject_connect_notify_test.py +++ b/sources/pyside6/tests/QtCore/qobject_connect_notify_test.py @@ -46,6 +46,7 @@ from helper.usesqcoreapplication import UsesQCoreApplication def cute_slot(): pass + class Obj(QObject): def __init__(self): super().__init__() @@ -64,6 +65,7 @@ class Obj(QObject): self.con_notified = False self.dis_notified = False + class TestQObjectConnectNotify(UsesQCoreApplication): '''Test case for QObject::connectNotify''' def setUp(self): @@ -109,5 +111,6 @@ class TestQObjectConnectNotify(UsesQCoreApplication): sender.disconnect(SIGNAL("foo()"), cute_slot) self.assertTrue(sender.dis_notified) + if __name__ == '__main__': unittest.main() |