summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2011-02-07 18:44:25 -0300
committerRenato Araujo Oliveira Filho <renato.filho@openbossa.org>2011-02-07 20:06:27 -0300
commit9b3d0b2ef2899d88ec026d81b84c45e4b501a17b (patch)
tree80537ccd073acd217614eef83f31b64cef659b38
parent8a50e91e6fd14ea7d323cfde471723c0dbb1ddc6 (diff)
downloadpyside-9b3d0b2ef2899d88ec026d81b84c45e4b501a17b.tar.gz
pyside-9b3d0b2ef2899d88ec026d81b84c45e4b501a17b.tar.xz
pyside-9b3d0b2ef2899d88ec026d81b84c45e4b501a17b.zip
Updated translation test to use previous generated qm files.
Upload qm files used on test to git. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
-rw-r--r--tests/QtCore/translation_test.py8
-rw-r--r--tests/QtCore/translations/trans_latin.qmbin0 -> 125 bytes
-rw-r--r--tests/QtCore/translations/trans_russian.qmbin0 -> 114 bytes
3 files changed, 0 insertions, 8 deletions
diff --git a/tests/QtCore/translation_test.py b/tests/QtCore/translation_test.py
index 7b5c5d6..d357b90 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 0000000..efdbee8
--- /dev/null
+++ b/tests/QtCore/translations/trans_latin.qm
Binary files differ
diff --git a/tests/QtCore/translations/trans_russian.qm b/tests/QtCore/translations/trans_russian.qm
new file mode 100644
index 0000000..5f16552
--- /dev/null
+++ b/tests/QtCore/translations/trans_russian.qm
Binary files differ