aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/tests/QtCore/staticMetaObject_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside6/tests/QtCore/staticMetaObject_test.py')
-rw-r--r--sources/pyside6/tests/QtCore/staticMetaObject_test.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/sources/pyside6/tests/QtCore/staticMetaObject_test.py b/sources/pyside6/tests/QtCore/staticMetaObject_test.py
index 29ab9a358..77dbcd9fb 100644
--- a/sources/pyside6/tests/QtCore/staticMetaObject_test.py
+++ b/sources/pyside6/tests/QtCore/staticMetaObject_test.py
@@ -37,11 +37,13 @@ init_test_paths(False)
from PySide6.QtCore import QObject, Slot, QMetaObject
+
class MyObject(QObject):
@Slot(int, str)
def slot1(self, a, b):
pass
+
class testAttribute(unittest.TestCase):
def testBug896(self):
mo = MyObject.staticMetaObject
@@ -54,5 +56,6 @@ class testAttribute(unittest.TestCase):
self.assertEqual(mo.indexOfSignal('destroyed(void)'), -1)
self.assertTrue(mo.indexOfSignal('destroyed()') > -1)
+
if __name__ == '__main__':
unittest.main()