From: Alex Waygood Date: Thu, 27 Jul 2023 23:57:55 +0000 (+0100) Subject: gh-106368: Argument clinic tests: improve failure message when tests in `ClinicExtern... X-Git-Tag: v3.13.0a1~1161 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=76c26eaca4147ba7e3e8d7379c5a828f0b512a46;p=thirdparty%2FPython%2Fcpython.git gh-106368: Argument clinic tests: improve failure message when tests in `ClinicExternalTests` fail (#107364) --- diff --git a/Lib/test/test_clinic.py b/Lib/test/test_clinic.py index d21c7d84c88d..2f74ee29b204 100644 --- a/Lib/test/test_clinic.py +++ b/Lib/test/test_clinic.py @@ -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.