0
0
mirror of https://github.com/django/django.git synced 2024-11-30 07:06:18 +01:00

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

View File

@ -2618,6 +2618,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