summaryrefslogtreecommitdiff
path: root/tests/settings_tests
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2021-09-09 07:42:05 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-09-14 12:05:43 +0200
commit676bd084f2509f4201561d5c77ed4ecbd157bfa0 (patch)
treebc8dfe6748a6bfc5fe8c728a5f825dfff575cb56 /tests/settings_tests
parent04e023e38331d6717af1cbd8da4926af612f7831 (diff)
Fixed #32873 -- Deprecated settings.USE_L10N.
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
Diffstat (limited to 'tests/settings_tests')
-rw-r--r--tests/settings_tests/tests.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/settings_tests/tests.py b/tests/settings_tests/tests.py
index ba38fd87ba..899059764e 100644
--- a/tests/settings_tests/tests.py
+++ b/tests/settings_tests/tests.py
@@ -248,19 +248,19 @@ class SettingsTests(SimpleTestCase):
Allow deletion of a setting in an overridden settings set (#18824)
"""
previous_i18n = settings.USE_I18N
- previous_l10n = settings.USE_L10N
+ previous_tz = settings.USE_TZ
with self.settings(USE_I18N=False):
del settings.USE_I18N
with self.assertRaises(AttributeError):
getattr(settings, 'USE_I18N')
# Should also work for a non-overridden setting
- del settings.USE_L10N
+ del settings.USE_TZ
with self.assertRaises(AttributeError):
- getattr(settings, 'USE_L10N')
+ getattr(settings, 'USE_TZ')
self.assertNotIn('USE_I18N', dir(settings))
- self.assertNotIn('USE_L10N', dir(settings))
+ self.assertNotIn('USE_TZ', dir(settings))
self.assertEqual(settings.USE_I18N, previous_i18n)
- self.assertEqual(settings.USE_L10N, previous_l10n)
+ self.assertEqual(settings.USE_TZ, previous_tz)
def test_override_settings_nested(self):
"""