aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtCore/bug_931.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtCore/bug_931.py')
-rw-r--r--sources/pyside6/tests/QtCore/bug_931.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/sources/pyside6/tests/QtCore/bug_931.py b/sources/pyside6/tests/QtCore/bug_931.py
index 1dcde427f..5f4f3b14c 100644
--- a/sources/pyside6/tests/QtCore/bug_931.py
+++ b/sources/pyside6/tests/QtCore/bug_931.py
@@ -37,9 +37,12 @@ init_test_paths(False)
from PySide6.QtCore import QObject, Signal
o = QObject()
+
+
class MyObject(QObject):
s = Signal(int)
+
class CheckSignalType(unittest.TestCase):
def testSignal(self):
self.assertTrue(isinstance(QObject.destroyed, Signal))
@@ -52,5 +55,6 @@ class CheckSignalType(unittest.TestCase):
self.assertTrue(isinstance(MyObject.s, Signal))
self.assertFalse(isinstance(int, Signal))
+
if __name__ == '__main__':
unittest.main()