Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fdd3bd9

Browse files
committed
[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
1 parent c058dfa commit fdd3bd9

File tree

1 file changed

+1
-0
lines changed
  • tests/regressiontests/admin_views

1 file changed

+1
-0
lines changed

tests/regressiontests/admin_views/tests.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2426,6 +2426,7 @@ def setUp(self):
24262426
def tearDown(self):
24272427
settings.USE_THOUSAND_SEPARATOR = self.old_USE_THOUSAND_SEPARATOR
24282428
settings.USE_L10N = self.old_USE_L10N
2429+
formats.reset_format_cache()
24292430

24302431
def assert_non_localized_year(self, response, year):
24312432
"""Ensure that the year is not localized with

0 commit comments

Comments
 (0)