diff options
author | stephanelsmith <stephane.smith@titansensor.com> | 2023-07-26 02:52:56 +0000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2023-09-01 17:39:19 +1000 |
commit | 633599cdd500d3a2c99193f2c4340ac823d1a8a8 (patch) | |
tree | b888d6ad1c2594ccf033bad0e0ee6d6e88e01e5e /tests/run-tests.py | |
parent | a64f2fdca09eb00fa4a6c0e96cd783f3ee772e57 (diff) |
tests/run-tests.py: Capture output of stderr when running on CPython.
Signed-off-by: stephanelsmith <stephane.smith@titansensor.com>
Diffstat (limited to 'tests/run-tests.py')
-rwxr-xr-x | tests/run-tests.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/run-tests.py b/tests/run-tests.py index 019b30189..de886b8ae 100755 --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -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: |