From e844e10b4f06c13d24d405fe0d2e80a23d260508 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Fri, 6 Sep 2013 17:01:23 -0500 Subject: Moved a settings usage up the stack in utils/formats.py #unsettings --- tests/i18n/tests.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests') 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): """ -- cgit v1.3