Ensure that L10N formats aren't cached between tests.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15461 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2011-02-09 00:09:54 +00:00
parent d3b38d578f
commit c2666c9a45
1 changed files with 1 additions and 0 deletions

View File

@ -2618,6 +2618,7 @@ class DateHierarchyTests(TestCase):
def tearDown(self): def tearDown(self):
settings.USE_THOUSAND_SEPARATOR = self.old_USE_THOUSAND_SEPARATOR settings.USE_THOUSAND_SEPARATOR = self.old_USE_THOUSAND_SEPARATOR
settings.USE_L10N = self.old_USE_L10N settings.USE_L10N = self.old_USE_L10N
formats.reset_format_cache()
def assert_non_localized_year(self, response, year): def assert_non_localized_year(self, response, year):
"""Ensure that the year is not localized with """Ensure that the year is not localized with