diff options
-rw-r--r-- | tests/helpers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/helpers.py b/tests/helpers.py index e85c7842..67d51b25 100644 --- a/tests/helpers.py +++ b/tests/helpers.py @@ -18,7 +18,8 @@ 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, PYTHONIOENCODING=sys.__stdout__.encoding) - print("SUB_ENV: %r" % (sub_env,)) + print("__stdout__: %r, enc = %r" % (sys.__stdout__, sys.__stdout__.encoding)) + print("stdout: %r, enc = %r" % (sys.stdout, sys.stdout.encoding)) proc = subprocess.Popen( cmd, shell=True, |