aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/QtCore/staticMetaObject_test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/QtCore/staticMetaObject_test.py b/tests/QtCore/staticMetaObject_test.py
index 36ef10478..f80872ccc 100644
--- a/tests/QtCore/staticMetaObject_test.py
+++ b/tests/QtCore/staticMetaObject_test.py
@@ -14,5 +14,10 @@ class testAttribute(unittest.TestCase):
self.assertEqual(mo.className(), 'MyObject')
self.assertTrue(mo.indexOfSlot('slot1(int,QString)') > -1)
+ def testDuplicateSlot(self):
+ mo = MyObject.staticMetaObject
+ self.assertEqual(mo.indexOfSignal('destroyed(void)'), -1)
+ self.assertTrue(mo.indexOfSignal('destroyed()') > -1)
+
if __name__ == '__main__':
unittest.main()