Commit 633599cd authored by stephanelsmith's avatar stephanelsmith Committed by Damien George

tests/run-tests.py: Capture output of stderr when running on CPython.

Signed-off-by: default avatarstephanelsmith <stephane.smith@titansensor.com>
parent a64f2fdc
......@@ -709,7 +709,9 @@ def run_tests(pyb, tests, args, result_dir, num_threads=1):
# run CPython to work out expected output
try:
output_expected = subprocess.check_output(
CPYTHON3_CMD + [os.path.abspath(test_file)], cwd=os.path.dirname(test_file)
CPYTHON3_CMD + [os.path.abspath(test_file)],
cwd=os.path.dirname(test_file),
stderr=subprocess.STDOUT,
)
if args.write_exp:
with open(test_file_expected, "wb") as f:
......
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