diff options
| author | Ramiro Morales <cramm0@gmail.com> | 2016-05-27 20:45:37 -0300 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2016-05-28 18:05:14 -0300 |
| commit | 15a5755e7cca630c2a0dbbcba436621ccc437c21 (patch) | |
| tree | 89faceb7e457388971c905106517c49e29f33d3c | |
| parent | a4c20ae85b40c49e28d1b2227208e4f00d7820df (diff) | |
Fixed #26673 -- Fixed a I18N test case error on Windows+Python 2.7.
`subprocess.Popen` doesn't accept enviroment vars with Unicode var name
or value.
| -rw-r--r-- | tests/i18n/test_compilation.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/i18n/test_compilation.py b/tests/i18n/test_compilation.py index fdc5fce9b8..50c868ec7a 100644 --- a/tests/i18n/test_compilation.py +++ b/tests/i18n/test_compilation.py @@ -171,7 +171,7 @@ class CompilationErrorHandling(MessageCompilationTests): self.addCleanup(self.rmfile, os.path.join(self.test_dir, mo_file)) # Make sure the output of msgfmt is unaffected by the current locale. env = os.environ.copy() - env.update({'LANG': 'C'}) + env.update({str('LANG'): str('C')}) 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. |
