summaryrefslogtreecommitdiff
path: root/tests/run-tests.py
diff options
context:
space:
mode:
authorstephanelsmith <stephane.smith@titansensor.com>2023-07-26 02:52:56 +0000
committerDamien George <damien@micropython.org>2023-09-01 17:39:19 +1000
commit633599cdd500d3a2c99193f2c4340ac823d1a8a8 (patch)
treeb888d6ad1c2594ccf033bad0e0ee6d6e88e01e5e /tests/run-tests.py
parenta64f2fdca09eb00fa4a6c0e96cd783f3ee772e57 (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-xtests/run-tests.py4
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: