summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/i18n/tests.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/i18n/tests.py b/tests/i18n/tests.py
index cd167616e7..c18c88cad3 100644
--- a/tests/i18n/tests.py
+++ b/tests/i18n/tests.py
@@ -728,9 +728,8 @@ class FormattingTests(TransRealMixin, TestCase):
with translation.override('de-at', deactivate=True):
de_format_mod = import_module('django.conf.locale.de.formats')
self.assertEqual(list(iter_format_modules('de')), [de_format_mod])
- with self.settings(FORMAT_MODULE_PATH='i18n.other.locale'):
- test_de_format_mod = import_module('i18n.other.locale.de.formats')
- self.assertEqual(list(iter_format_modules('de')), [test_de_format_mod, de_format_mod])
+ test_de_format_mod = import_module('i18n.other.locale.de.formats')
+ self.assertEqual(list(iter_format_modules('de', 'i18n.other.locale')), [test_de_format_mod, de_format_mod])
def test_iter_format_modules_stability(self):
"""