Skip to content

Commit 2827ad2

Browse files
[3.12] gh-106368: Argument clinic tests: improve failure message when tests in ClinicExternalTests fail (GH-107364) (#107365)
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 abaf89d commit 2827ad2

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
@@ -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)