aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtCore/translation_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtCore/translation_test.py')
-rw-r--r--tests/QtCore/translation_test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/QtCore/translation_test.py b/tests/QtCore/translation_test.py
index 99d4bf4e1..adf830cd6 100644
--- a/tests/QtCore/translation_test.py
+++ b/tests/QtCore/translation_test.py
@@ -25,7 +25,7 @@ class TranslationTest(UsesQCoreApplication):
obj = QObject()
obj.setObjectName(obj.tr('Hello World!'))
- self.assertEqual(obj.objectName(), py3k.unicode('Orbis, te saluto!'))
+ self.assertEqual(obj.objectName(), py3k.unicode_('Orbis, te saluto!'))
def testRussian(self):
#Set string value to Russian
@@ -35,7 +35,7 @@ class TranslationTest(UsesQCoreApplication):
obj = QObject()
obj.setObjectName(obj.tr('Hello World!'))
- self.assertEqual(obj.objectName(), py3k.unicode('привет мир!'))
+ self.assertEqual(obj.objectName(), py3k.unicode_('привет мир!'))
def testUtf8(self):
translator = QTranslator()
@@ -44,7 +44,7 @@ class TranslationTest(UsesQCoreApplication):
obj = QObject()
obj.setObjectName(obj.trUtf8('Hello World!'))
- self.assertEqual(obj.objectName(), py3k.unicode('привет мир!'))
+ self.assertEqual(obj.objectName(), py3k.unicode_('привет мир!'))
def testTranslateWithNoneDisambiguation(self):
value = 'String here'