Skip to content

Commit 51b302e

Browse files
[3.11] gh-106368: Argument clinic tests: improve failure message when tests in ClinicExternalTests fail (GH-107364) (#107366)
gh-106368: Argument clinic tests: improve failure message when tests in `ClinicExternalTests` fail (GH-107364) (cherry picked from commit 76c26ea) Co-authored-by: Alex Waygood <[email protected]>
1 parent f106254 commit 51b302e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_clinic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,7 @@ def _do_test(self, *args, expect_success=True):
13061306
) as proc:
13071307
proc.wait()
13081308
if expect_success and proc.returncode:
1309-
self.fail("".join(proc.stderr))
1309+
self.fail("".join([*proc.stdout, *proc.stderr]))
13101310
stdout = proc.stdout.read()
13111311
stderr = proc.stderr.read()
13121312
# Clinic never writes to stderr.

0 commit comments

Comments
 (0)