mirror of https://github.com/python/cpython
gh-106368: Argument clinic tests: improve failure message when tests in `ClinicExternalTests` fail (#107364)
This commit is contained in:
parent
c2b1689abc
commit
76c26eaca4
|
@ -1386,7 +1386,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…
Reference in New Issue