Skip to content

Instantly share code, notes, and snippets.

@andymckay
Created July 15, 2011 19:54
Show Gist options
  • Save andymckay/1085421 to your computer and use it in GitHub Desktop.
Save andymckay/1085421 to your computer and use it in GitHub Desktop.
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