mirror of
https://github.com/python/cpython.git
synced 2025-10-01 12:52:18 +00:00
[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 76c26eaca4
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
parent
abaf89d908
commit
2827ad2f31
1 changed files with 1 additions and 1 deletions
|
@ -1360,7 +1360,7 @@ class ClinicExternalTest(TestCase):
|
|||
) 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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue