summaryrefslogtreecommitdiffstats
path: root/tests/QtCore/bug_1104.py
blob: b985f4f4831829e6e9639bcdfd3813adc0b6e8ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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()