Skip to content

Commit

Permalink
[3.11] gh-106368: Argument clinic tests: improve failure message when…
Browse files Browse the repository at this point in the history
… 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]>
  • Loading branch information
miss-islington and AlexWaygood authored Jul 28, 2023
1 parent f106254 commit 51b302e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,7 @@ def _do_test(self, *args, expect_success=True):
) as proc:
proc.wait()
if expect_success and proc.returncode:
self.fail("".join(proc.stderr))
self.fail("".join([*proc.stdout, *proc.stderr]))
stdout = proc.stdout.read()
stderr = proc.stderr.read()
# Clinic never writes to stderr.
Expand Down

0 comments on commit 51b302e

Please sign in to comment.