Skip to content

Commit 372ecfe

Browse files
committed
tests/run-tests.py: Give more information when CPython crashes.
To make it easier to diagnose why CPython crashed. Signed-off-by: Damien George <[email protected]>
1 parent 3b62524 commit 372ecfe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/run-tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -955,8 +955,8 @@ def run_one_test(test_file):
955955
cwd=os.path.dirname(test_file),
956956
stderr=subprocess.STDOUT,
957957
)
958-
except subprocess.CalledProcessError:
959-
output_expected = b"CPYTHON3 CRASH"
958+
except subprocess.CalledProcessError as er:
959+
output_expected = b"CPYTHON3 CRASH:\n" + er.output
960960

961961
# Canonical form for all host platforms is to use \n for end-of-line.
962962
output_expected = output_expected.replace(b"\r\n", b"\n")

0 commit comments

Comments
 (0)