Fix bug 988 - "The type supplied with currentChanged signal in QTabWidget has changed in 1.0.6"

Reviewer: Luciano Wolf <luciano.wolf@openbossa.org>
          Marcelo Lira <marcelo.lira@openbossa.org>
This commit is contained in:
Hugo Parente Lima 2011-08-30 16:02:43 -03:00
commit a7e4ddb8ca
3 changed files with 27 additions and 1 deletions

View file

@ -72,6 +72,7 @@ PYSIDE_TEST(bug_921.py)
PYSIDE_TEST(bug_941.py)
PYSIDE_TEST(bug_964.py)
PYSIDE_TEST(bug_972.py)
PYSIDE_TEST(bug_988.py)
PYSIDE_TEST(bug_991.py)
PYSIDE_TEST(customproxywidget_test.py)
PYSIDE_TEST(deepcopy_test.py)

18
tests/QtGui/bug_988.py Normal file
View file

@ -0,0 +1,18 @@
import unittest
from PySide.QtGui import *
class TestBug988 (unittest.TestCase):
def callback(self, arg):
self.arg = arg
def testIt(self):
self.arg = None
app = QApplication([])
obj = QTabWidget()
obj.currentChanged.connect(self.callback)
obj.currentChanged.emit(5)
self.assertEqual(self.arg, 5)
if __name__ == "__main__":
unittest.main()