diff options
Diffstat (limited to 'tests/helpers.py')
-rw-r--r-- | tests/helpers.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/helpers.py b/tests/helpers.py index 344ed71e..cbb6e01c 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -26,9 +26,7 @@ def run_command(cmd): # the subprocess is set incorrectly to ascii. Use an environment variable # to force the encoding to be the same as ours. sub_env = dict(os.environ) - encoding = output_encoding() - if encoding: - sub_env['PYTHONIOENCODING'] = encoding + sub_env['PYTHONIOENCODING'] = output_encoding() proc = subprocess.Popen( cmd, |