Commit c2666c9a authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

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
parent d3b38d57
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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