aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2
diff options
context:
space:
mode:
Diffstat (limited to 'sources/pyside2')
-rw-r--r--sources/pyside2/tests/QtCore/unicode_test.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/sources/pyside2/tests/QtCore/unicode_test.py b/sources/pyside2/tests/QtCore/unicode_test.py
index 3326e2e0e..f44a00c62 100644
--- a/sources/pyside2/tests/QtCore/unicode_test.py
+++ b/sources/pyside2/tests/QtCore/unicode_test.py
@@ -35,6 +35,7 @@ import unittest
import py3kcompat as py3k
from PySide2.QtCore import QObject
+from PySide2.QtCore import QByteArray
class UnicodeConversion(unittest.TestCase):
'''Test case for QString to/from Python Unicode conversion'''
@@ -57,6 +58,10 @@ class UnicodeConversion(unittest.TestCase):
obj.setObjectName(py3k.unicode_('ümlaut'))
self.assertEqual(obj.objectName(), py3k.unicode_('ümlaut'))
+ def testTranslateUnicode(self):
+ ba = QByteArray(py3k.unicode_('0123456789'))
+ self.assertEqual(ba.__str__(), py3k.unicode_('0123456789'))
+
if __name__ == '__main__':
unittest.main()