aboutsummaryrefslogtreecommitdiffstats
path: root/tests/signals/args_dont_match.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/signals/args_dont_match.py')
-rw-r--r--tests/signals/args_dont_match.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/signals/args_dont_match.py b/tests/signals/args_dont_match.py
new file mode 100644
index 000000000..b81c5682c
--- /dev/null
+++ b/tests/signals/args_dont_match.py
@@ -0,0 +1,21 @@
+
+import unittest
+from PySide.QtCore import *
+
+class ArgsDontMatch(unittest.TestCase):
+
+ def callback(self, arg1):
+ self.ok = True
+
+ def testConnectSignalToSlotWithLessArgs(self):
+ self.ok = False
+ obj1 = QObject()
+ QObject.connect(obj1, SIGNAL('the_signal(int, int, int)'), self.callback)
+ obj1.emit(SIGNAL('the_signal(int, int, int)'), 1, 2, 3)
+
+ self.assert_(self.ok)
+
+
+
+if __name__ == '__main__':
+ unittest.main()