summaryrefslogtreecommitdiff
path: root/tests/i18n
diff options
context:
space:
mode:
authorNilo CeĢsar Teixeira <nilo.teixeira@gmail.com>2021-05-20 15:31:44 -0300
committerCarlton Gibson <carlton.gibson@noumenal.es>2021-05-26 15:37:42 +0200
commit0d67481a6664a1e66d875eef59b96ed489060601 (patch)
tree22259e6dc76e0c9e7c28db4171f12f452b77b998 /tests/i18n
parent9e4780dedac15adcc04309d0198f4ae34e04cc2a (diff)
downloaddjango-0d67481a6664a1e66d875eef59b96ed489060601.tar.gz
Fixed #32762 -- Fixed locale reset in compilemessages test.
Reset the `LC_ALL` override value in the test environment to ensure that locale values the calling environment are not used.
Diffstat (limited to 'tests/i18n')
-rw-r--r--tests/i18n/test_compilation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i18n/test_compilation.py b/tests/i18n/test_compilation.py
index 791c1d4f15..299c07a93f 100644
--- a/tests/i18n/test_compilation.py
+++ b/tests/i18n/test_compilation.py
@@ -193,7 +193,7 @@ class CompilationErrorHandling(MessageCompilationTests):
# po file contains invalid msgstr content (triggers non-ascii error content).
# Make sure the output of msgfmt is unaffected by the current locale.
env = os.environ.copy()
- env.update({'LANG': 'C'})
+ env.update({'LC_ALL': 'C'})
with mock.patch('django.core.management.utils.run', lambda *args, **kwargs: run(*args, env=env, **kwargs)):
cmd = MakeMessagesCommand()
if cmd.gettext_version < (0, 18, 3):