Created
July 15, 2011 19:54
-
-
Save andymckay/1085421 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/test_utils/__init__.py b/test_utils/__init__.py | |
index 0e9bf84..dc3fd3e 100644 | |
--- a/test_utils/__init__.py | |
+++ b/test_utils/__init__.py | |
@@ -273,6 +273,7 @@ class TestCase(FastFixtureTestCase): | |
settings.CACHE_COUNT_TIMEOUT = None | |
trans_real.deactivate() | |
trans_real._translations = {} # Django fails to clear this cache. | |
+ trans_real.activate(settings.LANGUAGE_CODE) | |
super(TestCase, self)._pre_setup() | |
def _post_teardown(self): |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment