Skip to content

Commit 633599c

Browse files
stephanelsmithdpgeorge
authored andcommitted
tests/run-tests.py: Capture output of stderr when running on CPython.
Signed-off-by: stephanelsmith <[email protected]>
1 parent a64f2fd commit 633599c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/run-tests.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,9 @@ def run_one_test(test_file):
709709
# run CPython to work out expected output
710710
try:
711711
output_expected = subprocess.check_output(
712-
CPYTHON3_CMD + [os.path.abspath(test_file)], cwd=os.path.dirname(test_file)
712+
CPYTHON3_CMD + [os.path.abspath(test_file)],
713+
cwd=os.path.dirname(test_file),
714+
stderr=subprocess.STDOUT,
713715
)
714716
if args.write_exp:
715717
with open(test_file_expected, "wb") as f:

0 commit comments

Comments
 (0)