Commit 066b7079 by Nick Irvine Committed by James Cammarata

Clean non-printable chars from stdout instead of dropping the whole thing

parent f80494e4
......@@ -1075,7 +1075,7 @@ class Runner(object):
if hasattr(sys.stdout, "isatty"):
if "stdout" in data and sys.stdout.isatty():
if not string_functions.isprintable(data['stdout']):
data['stdout'] = ''
data['stdout'] = ''.join(c for c in data['stdout'] if string_functions.isprintable(c))
if 'item' in inject:
result.result['item'] = inject['item']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment