From 4e2a30c7ece7b04ab16b13c7d5743e5734b60664 2014-11-18 18:49:44 From: Thomas Kluyver Date: 2014-11-18 18:49:44 Subject: [PATCH] Merge pull request #6971 from takluyver/win-envvar-not-str-2 More info about erroneous environment variable --- diff --git a/IPython/testing/tools.py b/IPython/testing/tools.py index 00a3d30..cfb4c9f 100644 --- a/IPython/testing/tools.py +++ b/IPython/testing/tools.py @@ -222,7 +222,7 @@ def ipexec(fname, options=None, commands=()): # Debug a bizarre failure we've seen on Windows: # TypeError: environment can only contain strings if not isinstance(v, str): - print(v) + print(k, v) p = Popen(full_cmd, stdout=PIPE, stderr=PIPE, stdin=PIPE, env=env) out, err = p.communicate(input=py3compat.str_to_bytes('\n'.join(commands)) or None) out, err = py3compat.bytes_to_str(out), py3compat.bytes_to_str(err)