aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtCore/unicode_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtCore/unicode_test.py')
-rw-r--r--tests/QtCore/unicode_test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/QtCore/unicode_test.py b/tests/QtCore/unicode_test.py
index abb73d4dc..ccc499739 100644
--- a/tests/QtCore/unicode_test.py
+++ b/tests/QtCore/unicode_test.py
@@ -21,13 +21,13 @@ class UnicodeConversion(unittest.TestCase):
#Set regular Python string retrieve unicode
obj = QObject()
obj.setObjectName('test')
- self.assertEqual(obj.objectName(), py3k.unicode('test'))
+ self.assertEqual(obj.objectName(), py3k.unicode_('test'))
def testSetUnicodeRetrieveUnicode(self):
#Set Python unicode string and retrieve unicode
obj = QObject()
- obj.setObjectName(py3k.unicode('ümlaut'))
- self.assertEqual(obj.objectName(), py3k.unicode('ümlaut'))
+ obj.setObjectName(py3k.unicode_('ümlaut'))
+ self.assertEqual(obj.objectName(), py3k.unicode_('ümlaut'))
if __name__ == '__main__':
unittest.main()