summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2011-02-09 00:11:57 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2011-02-09 00:11:57 +0000
commitfdd3bd9d15e8a25e2660236a53c4f587b4afffa4 (patch)
treecae3c3011f3482023bbb835fcaa54238023bfd5a
parentc058dfa9cdd75cf23ab24985d4aeb257da8f267f (diff)
downloaddjango-fdd3bd9d15e8a25e2660236a53c4f587b4afffa4.tar.gz
[1.2.X] Ensure that L10N formats aren't cached between tests.
Backport of r15461 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@15463 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--tests/regressiontests/admin_views/tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/regressiontests/admin_views/tests.py b/tests/regressiontests/admin_views/tests.py
index 8991048a07..4caba2bfec 100644
--- a/tests/regressiontests/admin_views/tests.py
+++ b/tests/regressiontests/admin_views/tests.py
@@ -2426,6 +2426,7 @@ class DateHierarchyTests(TestCase):
def tearDown(self):
settings.USE_THOUSAND_SEPARATOR = self.old_USE_THOUSAND_SEPARATOR
settings.USE_L10N = self.old_USE_L10N
+ formats.reset_format_cache()
def assert_non_localized_year(self, response, year):
"""Ensure that the year is not localized with