Skip to content

Commit 39e202f

Browse files
AlexWaygoodmiss-islington
authored andcommitted
pythongh-106368: Argument clinic tests: improve failure message when tests in ClinicExternalTests fail (pythonGH-107364)
(cherry picked from commit 76c26ea) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
1 parent abaf89d commit 39e202f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/test/test_clinic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ def _do_test(self, *args, expect_success=True):
13601360
) as proc:
13611361
proc.wait()
13621362
if expect_success and proc.returncode:
1363-
self.fail("".join(proc.stderr))
1363+
self.fail("".join([*proc.stdout, *proc.stderr]))
13641364
stdout = proc.stdout.read()
13651365
stderr = proc.stderr.read()
13661366
# Clinic never writes to stderr.

0 commit comments

Comments
 (0)