diff options
author | Renato Filho <renato.filho@openbossa.org> | 2011-10-06 11:36:24 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:56:11 -0300 |
commit | edaefbce481634b2f9d5a6e28c2e73db7f958602 (patch) | |
tree | 489c4169928d8e688cff79f80e564e93bad9a57f /tests/QtCore/translation_test.py | |
parent | 75843bf45a494c37168ff2ee5672490ca1dee9cf (diff) |
Updated QtCore modue to works with python 2.x and 3.x
Diffstat (limited to 'tests/QtCore/translation_test.py')
-rw-r--r-- | tests/QtCore/translation_test.py | 6 |
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' |