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
commitd36614407550de7a8fc977b94e1cf104c9a2ead4 (patch)
tree2de329498f3dc2ed6975769540a013e00daee841 /tests/helpers.py
parentf28ab3b850586fd7531af7473ac2a93f8214d190 (diff)
downloadpython-coveragepy-git-d36614407550de7a8fc977b94e1cf104c9a2ead4.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 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,