summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2013-09-06 17:01:23 -0500
committerAdrian Holovaty <adrian@holovaty.com>2013-09-06 17:01:36 -0500
commite844e10b4f06c13d24d405fe0d2e80a23d260508 (patch)
tree38398c2c4da173f6980cff3f30b327a8cbbb0e21 /tests
parent0b7cf56e28078a6d5e2a9cd21ef08176ad9a453b (diff)
Moved a settings usage up the stack in utils/formats.py #unsettings
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):
"""