mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed E128 flake8 warnings in tests/.
This commit is contained in:
@@ -172,8 +172,7 @@ class CompilationErrorHandling(MessageCompilationTests):
|
||||
# Make sure the output of msgfmt is unaffected by the current locale.
|
||||
env = os.environ.copy()
|
||||
env.update({'LANG': 'C'})
|
||||
with mock.patch('django.core.management.utils.Popen',
|
||||
lambda *args, **kwargs: Popen(*args, env=env, **kwargs)):
|
||||
with mock.patch('django.core.management.utils.Popen', lambda *args, **kwargs: Popen(*args, env=env, **kwargs)):
|
||||
if six.PY2:
|
||||
# Various assertRaises on PY2 don't support unicode error messages.
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user