Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Made dateformat tests reactivate original language

  • Loading branch information...
commit 21189cb80b9960940008a52cdc0de86145176497 1 parent 226a9fb
Anssi Kääriäinen authored February 27, 2013

Showing 1 changed file with 2 additions and 0 deletions. Show diff stats Hide diff stats

  1. 2  tests/utils_tests/dateformat.py
2  tests/utils_tests/dateformat.py
@@ -14,6 +14,7 @@ class DateFormatTests(unittest.TestCase):
14 14
     def setUp(self):
15 15
         self.old_TZ = os.environ.get('TZ')
16 16
         os.environ['TZ'] = 'Europe/Copenhagen'
  17
+        self._orig_lang = translation.get_language()
17 18
         translation.activate('en-us')
18 19
 
19 20
         try:
@@ -25,6 +26,7 @@ def setUp(self):
25 26
             self.tz_tests = False
26 27
 
27 28
     def tearDown(self):
  29
+        translation.activate(self._orig_lang)
28 30
         if self.old_TZ is None:
29 31
             del os.environ['TZ']
30 32
         else:

0 notes on commit 21189cb

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