Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Made dateformat tests reactivate original language

  • Loading branch information...
commit 21189cb80b9960940008a52cdc0de86145176497 1 parent 226a9fb
@akaariai akaariai authored
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:
Please sign in to comment.
Something went wrong with that request. Please try again.