diff options
| author | Anssi Kääriäinen <akaariai@gmail.com> | 2013-02-27 23:48:17 +0200 |
|---|---|---|
| committer | Anssi Kääriäinen <akaariai@gmail.com> | 2013-02-27 23:48:17 +0200 |
| commit | 21189cb80b9960940008a52cdc0de86145176497 (patch) | |
| tree | 6710ac644925815c4a9f8c9cf74b05d08b7c1f8b /tests/utils_tests | |
| parent | 226a9fb2ea417dacbd01c95dd5283c9478e0abf6 (diff) | |
Made dateformat tests reactivate original language
Diffstat (limited to 'tests/utils_tests')
| -rw-r--r-- | tests/utils_tests/dateformat.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/utils_tests/dateformat.py b/tests/utils_tests/dateformat.py index 0f4fd67f6f..78cedaf764 100644 --- a/tests/utils_tests/dateformat.py +++ b/tests/utils_tests/dateformat.py @@ -14,6 +14,7 @@ class DateFormatTests(unittest.TestCase): def setUp(self): self.old_TZ = os.environ.get('TZ') os.environ['TZ'] = 'Europe/Copenhagen' + self._orig_lang = translation.get_language() translation.activate('en-us') try: @@ -25,6 +26,7 @@ class DateFormatTests(unittest.TestCase): self.tz_tests = False def tearDown(self): + translation.activate(self._orig_lang) if self.old_TZ is None: del os.environ['TZ'] else: |
