summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-09-09 18:09:28 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-09-10 08:57:43 -0300
commitbe5bd91e7234409c88a7a5b57dbfea699ea77add (patch)
treefa192cd4d90285cd52d429ee026c18912c3616fa
parentb25a7e510c44db1cae0406b380d984e81676bb38 (diff)
downloadpyside-be5bd91e7234409c88a7a5b57dbfea699ea77add.tar.gz
pyside-be5bd91e7234409c88a7a5b57dbfea699ea77add.tar.xz
pyside-be5bd91e7234409c88a7a5b57dbfea699ea77add.zip
Remove OS specific commands from translation test.
Reviewer: Lauro Moura <lauro.neto@openbossa.org> Bruno Ara├║jo <burno.araujo@openbossa.org>
-rw-r--r--tests/QtCore/translation_test.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/QtCore/translation_test.py b/tests/QtCore/translation_test.py
index 6b75bee..7b5c5d6 100644
--- a/tests/QtCore/translation_test.py
+++ b/tests/QtCore/translation_test.py
@@ -4,6 +4,7 @@
'''Unit tests to test QTranslator and translation in general.'''
import os
+import glob
import unittest
from PySide.QtCore import *
@@ -16,10 +17,12 @@ class TranslationTest(UsesQCoreApplication):
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
- os.system('lrelease %s/*.ts > /dev/null' % self.trdir)
+ for file in glob.glob('%s/*.ts' % self.trdir):
+ self.assertFalse(os.system('lrelease -silent %s' % file))
def tearDown(self):
- os.system('rm %s/*.qm > /dev/null' % self.trdir)
+ for file in glob.glob('%s/*.qm' % self.trdir):
+ os.remove(file)
super(TranslationTest, self).tearDown()
def testLatin(self):