Skip to content

Commit

Permalink
pythongh-106368: Argument clinic tests: improve failure message when …
Browse files Browse the repository at this point in the history
…tests in `ClinicExternalTests` fail (python#107364)
  • Loading branch information
AlexWaygood authored Jul 27, 2023
1 parent c2b1689 commit 76c26ea
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 @@ -1386,7 +1386,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 76c26ea

Please sign in to comment.