gh-106368: Argument clinic tests: improve failure message when tests in `ClinicExternalTests` fail (#107364)

This commit is contained in:
Alex Waygood 2023-07-28 00:57:55 +01:00 committed by GitHub
parent c2b1689abc
commit 76c26eaca4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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