1
0
mirror of https://github.com/django/django.git synced 2025-10-24 14:16:09 +00:00

Refs #25753 -- Reset l10n cache when format settings change

Thanks Jaap Roes for the initial patch.
This commit is contained in:
Claude Paroz
2016-12-01 21:22:16 +01:00
parent 0a8c685447
commit 1206d7fa57
3 changed files with 18 additions and 18 deletions

View File

@@ -186,9 +186,6 @@ class AdminViewBasicTestCase(TestCase):
def setUp(self):
self.client.force_login(self.superuser)
def tearDown(self):
formats.reset_format_cache()
def assertContentBefore(self, response, text1, text2, failing_msg=None):
"""
Testing utility asserting that text1 appears before text2 in response
@@ -5301,9 +5298,6 @@ class DateHierarchyTests(TestCase):
def setUp(self):
self.client.force_login(self.superuser)
def tearDown(self):
formats.reset_format_cache()
def assert_non_localized_year(self, response, year):
"""
The year is not localized with USE_THOUSAND_SEPARATOR (#15234).