diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-20 21:59:52 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-01-20 21:59:52 -0500 |
commit | c68375e0667665170e9b2d5172ba6dd4eac938b8 (patch) | |
tree | 8183220681f21e3e96633faeb3ba73d03f822891 /tests/helpers.py | |
parent | f95d0d8321f88e1457df5a7f4e3af6cb88798862 (diff) | |
download | python-coveragepy-c68375e0667665170e9b2d5172ba6dd4eac938b8.tar.gz |
Get rid of some unused code paths
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 344ed71..cbb6e01 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, |