summaryrefslogtreecommitdiffstats
path: root/tests/QtCore/bug_1104.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtCore/bug_1104.py')
-rw-r--r--tests/QtCore/bug_1104.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/QtCore/bug_1104.py b/tests/QtCore/bug_1104.py
new file mode 100644
index 0000000..b985f4f
--- /dev/null
+++ b/tests/QtCore/bug_1104.py
@@ -0,0 +1,18 @@
+''' unit test for BUG #1104 '''
+
+from PySide import QtCore
+import py3kcompat as py3k
+from helper import UsesQApplication
+import unittest
+
+class QSettingsTestCase(UsesQApplication):
+ def testSetValueWithLongInts(self):
+ s = QtCore.QSettings()
+ s.setValue("test", [(py3k.unicode_('36/37'), 65824, 69888),
+ (py3k.unicode_('38/39'), 4294902272, 4294906368),
+ (py3k.unicode_('40/41'), 4294902528, 4294906624),
+ (py3k.unicode_('new'), 65824, 69888)])
+ val = s.value("test")
+
+if __name__ == "__main__":
+ unittest.main()