aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtGui/qlcdnumber_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtGui/qlcdnumber_test.py')
-rw-r--r--tests/QtGui/qlcdnumber_test.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/QtGui/qlcdnumber_test.py b/tests/QtGui/qlcdnumber_test.py
new file mode 100644
index 000000000..eb6a4f396
--- /dev/null
+++ b/tests/QtGui/qlcdnumber_test.py
@@ -0,0 +1,16 @@
+import unittest
+
+from PySide.QtGui import QApplication, QLCDNumber
+
+class QLCDNumberOverflow(unittest.TestCase):
+ '''Test case for unhandled overflow on QLCDNumber() numDigits argument (see bug #215).'''
+
+ def setUp(self):
+ self.app = QApplication([])
+
+ def testnumDigitsOverflow(self):
+ # NOTE: PyQt4 raises TypeError, but boost.python raises OverflowError
+ self.assertRaises(OverflowError, QLCDNumber, 840835495615213080)
+
+if __name__ == '__main__':
+ unittest.main()