From 9386dd0452eb72c0940f14756254c4e14ac76415 Mon Sep 17 00:00:00 2001 From: Renato Araujo Oliveira Filho Date: Mon, 7 Feb 2011 18:44:25 -0300 Subject: Updated translation test to use previous generated qm files. Upload qm files used on test to git. Reviewer: Luciano Wolf Lauro Moura --- tests/QtCore/translation_test.py | 8 -------- tests/QtCore/translations/trans_latin.qm | Bin 0 -> 125 bytes tests/QtCore/translations/trans_russian.qm | Bin 0 -> 114 bytes 3 files changed, 8 deletions(-) create mode 100644 tests/QtCore/translations/trans_latin.qm create mode 100644 tests/QtCore/translations/trans_russian.qm diff --git a/tests/QtCore/translation_test.py b/tests/QtCore/translation_test.py index 7b5c5d633..d357b90d2 100644 --- a/tests/QtCore/translation_test.py +++ b/tests/QtCore/translation_test.py @@ -16,14 +16,6 @@ class TranslationTest(UsesQCoreApplication): def setUp(self): super(TranslationTest, self).setUp() self.trdir = os.path.join(os.path.dirname(__file__), 'translations') - # os.system is probably not the best way to do it - for file in glob.glob('%s/*.ts' % self.trdir): - self.assertFalse(os.system('lrelease -silent %s' % file)) - - def tearDown(self): - for file in glob.glob('%s/*.qm' % self.trdir): - os.remove(file) - super(TranslationTest, self).tearDown() def testLatin(self): #Set string value to Latin diff --git a/tests/QtCore/translations/trans_latin.qm b/tests/QtCore/translations/trans_latin.qm new file mode 100644 index 000000000..efdbee8c7 Binary files /dev/null and b/tests/QtCore/translations/trans_latin.qm differ diff --git a/tests/QtCore/translations/trans_russian.qm b/tests/QtCore/translations/trans_russian.qm new file mode 100644 index 000000000..5f16552a7 Binary files /dev/null and b/tests/QtCore/translations/trans_russian.qm differ -- cgit v1.2.3