summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-08-31 11:31:03 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2011-08-31 11:40:09 -0300
commit90979117a636437423bf8573340a2a6feecbf980 (patch)
tree13c0cad1fb6d5d9855312b8746b48537965a880f /tests
parent20d74f8407292fdbc7313eb9925403b9afd17a76 (diff)
downloadpyside-90979117a636437423bf8573340a2a6feecbf980.tar.gz
pyside-90979117a636437423bf8573340a2a6feecbf980.tar.xz
pyside-90979117a636437423bf8573340a2a6feecbf980.zip
Unit test for bug 967, a side effect of bug 988.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Renato Ara├║jo <renato.filho@openbossa.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/QtGui/CMakeLists.txt1
-rw-r--r--tests/QtGui/bug_967.py18
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/QtGui/CMakeLists.txt b/tests/QtGui/CMakeLists.txt
index 9fb62b4..ab5bd39 100644
--- a/tests/QtGui/CMakeLists.txt
+++ b/tests/QtGui/CMakeLists.txt
@@ -71,6 +71,7 @@ PYSIDE_TEST(bug_919.py)
PYSIDE_TEST(bug_921.py)
PYSIDE_TEST(bug_941.py)
PYSIDE_TEST(bug_964.py)
+PYSIDE_TEST(bug_967.py)
PYSIDE_TEST(bug_972.py)
PYSIDE_TEST(bug_979.py)
PYSIDE_TEST(bug_988.py)
diff --git a/tests/QtGui/bug_967.py b/tests/QtGui/bug_967.py
new file mode 100644
index 0000000..41faf2f
--- /dev/null
+++ b/tests/QtGui/bug_967.py
@@ -0,0 +1,18 @@
+import unittest
+from PySide.QtGui import *
+
+class TestBug967 (unittest.TestCase):
+
+ def callback(self, arg):
+ self.arg = arg
+
+ def testIt(self):
+ self.arg = None
+ app = QApplication([])
+ obj = QComboBox()
+ obj.currentIndexChanged.connect(self.callback)
+ obj.currentIndexChanged.emit(5)
+ self.assertEqual(self.arg, 5)
+
+if __name__ == "__main__":
+ unittest.main()