summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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):