Skip to content
Browse files

Made dateformat tests reactivate original language

  • Loading branch information...
1 parent 226a9fb commit 21189cb80b9960940008a52cdc0de86145176497 @akaariai akaariai committed
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/utils_tests/dateformat.py
View
2 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 @@ def setUp(self):
self.tz_tests = False
def tearDown(self):
+ translation.activate(self._orig_lang)
if self.old_TZ is None:
del os.environ['TZ']
else:

0 comments on commit 21189cb

Please sign in to comment.
Something went wrong with that request. Please try again.