diff options
Diffstat (limited to 'tests/QtCore/qobject_connect_notify_test.py')
-rw-r--r-- | tests/QtCore/qobject_connect_notify_test.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/QtCore/qobject_connect_notify_test.py b/tests/QtCore/qobject_connect_notify_test.py index 629a79a6..50b748ca 100644 --- a/tests/QtCore/qobject_connect_notify_test.py +++ b/tests/QtCore/qobject_connect_notify_test.py @@ -69,7 +69,10 @@ class TestQObjectConnectNotify(UsesQCoreApplication): receiver = QObject() sender.connect(SIGNAL("destroyed()"), receiver, SLOT("deleteLater()")) self.assertTrue(sender.con_notified) - self.assertEqual(sender.signal, SIGNAL("destroyed()")) + # When connecting to a regular slot, and not a python callback function, QObject::connect + # will use the non-cloned method signature, so connecting to destroyed() will actually + # connect to destroyed(QObject*). + self.assertEqual(sender.signal.methodSignature(), "destroyed(QObject*)") sender.disconnect(SIGNAL("destroyed()"), receiver, SLOT("deleteLater()")) self.assertTrue(sender.dis_notified) |