diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2013-09-06 17:01:23 -0500 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2013-09-06 17:01:36 -0500 |
| commit | e844e10b4f06c13d24d405fe0d2e80a23d260508 (patch) | |
| tree | 38398c2c4da173f6980cff3f30b327a8cbbb0e21 /tests | |
| parent | 0b7cf56e28078a6d5e2a9cd21ef08176ad9a453b (diff) | |
Moved a settings usage up the stack in utils/formats.py #unsettings
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/i18n/tests.py | 5 |
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): """ |
