From ac2e6e686906810e9c24ca6c39cae6234ab25557 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 22 Apr 2021 19:57:27 +0200 Subject: [PATCH] Fixed isolation of i18n.tests.FormattingTests.test_get_custom_format(). --- tests/i18n/tests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/i18n/tests.py b/tests/i18n/tests.py index ddae4501ec8..8248122a979 100644 --- a/tests/i18n/tests.py +++ b/tests/i18n/tests.py @@ -1254,6 +1254,7 @@ class FormattingTests(SimpleTestCase): self.assertEqual(get_format('DEBUG'), 'DEBUG') def test_get_custom_format(self): + reset_format_cache() with self.settings(FORMAT_MODULE_PATH='i18n.other.locale'): with translation.override('fr', deactivate=True): self.assertEqual('d/m/Y CUSTOM', get_format('CUSTOM_DAY_FORMAT'))