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>
This commit is contained in:
parent
6e6e7f528d
commit
57b291fe66
2 changed files with 19 additions and 0 deletions
|
|
@ -71,6 +71,7 @@ PYSIDE_TEST(bug_919.py)
|
||||||
PYSIDE_TEST(bug_921.py)
|
PYSIDE_TEST(bug_921.py)
|
||||||
PYSIDE_TEST(bug_941.py)
|
PYSIDE_TEST(bug_941.py)
|
||||||
PYSIDE_TEST(bug_964.py)
|
PYSIDE_TEST(bug_964.py)
|
||||||
|
PYSIDE_TEST(bug_967.py)
|
||||||
PYSIDE_TEST(bug_972.py)
|
PYSIDE_TEST(bug_972.py)
|
||||||
PYSIDE_TEST(bug_979.py)
|
PYSIDE_TEST(bug_979.py)
|
||||||
PYSIDE_TEST(bug_988.py)
|
PYSIDE_TEST(bug_988.py)
|
||||||
|
|
|
||||||
18
tests/QtGui/bug_967.py
Normal file
18
tests/QtGui/bug_967.py
Normal file
|
|
@ -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()
|
||||||
Loading…
Add table
Add a link
Reference in a new issue