summaryrefslogtreecommitdiff
path: root/tests/helpers.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-01-20 21:59:52 -0500
committerNed Batchelder <ned@nedbatchelder.com>2017-01-20 21:59:52 -0500
commitc68375e0667665170e9b2d5172ba6dd4eac938b8 (patch)
tree8183220681f21e3e96633faeb3ba73d03f822891 /tests/helpers.py
parentf95d0d8321f88e1457df5a7f4e3af6cb88798862 (diff)
downloadpython-coveragepy-c68375e0667665170e9b2d5172ba6dd4eac938b8.tar.gz
Get rid of some unused code paths
Diffstat (limited to 'tests/helpers.py')
-rw-r--r--tests/helpers.py4
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,