summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-10-25 19:28:29 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-10-25 19:28:29 -0400
commitba5c1bfbc755814a0c19af4ee3be2d362e81c3db (patch)
tree748901908aeb52b42ec84891b37dba15d6265326
parent57bd9f25449c2368e668087c6df999593ee42580 (diff)
downloadpython-coveragepy-ba5c1bfbc755814a0c19af4ee3be2d362e81c3db.tar.gz
Diagnostic for appveyor
-rw-r--r--tests/helpers.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/helpers.py b/tests/helpers.py
index f0859f5..e85c784 100644
--- a/tests/helpers.py
+++ b/tests/helpers.py
@@ -17,10 +17,12 @@ def run_command(cmd):
# In some strange cases (PyPy3 in a virtualenv!?) the stdout encoding of
# 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, PYTHONIOENCODING=sys.__stdout__.encoding)
+ print("SUB_ENV: %r" % (sub_env,))
proc = subprocess.Popen(
cmd,
shell=True,
- env=dict(os.environ, PYTHONIOENCODING=sys.__stdout__.encoding),
+ env=sub_env,
stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr=subprocess.STDOUT
)