]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-106368: Argument clinic tests: improve failure message when tests in `ClinicExtern...
authorAlex Waygood <Alex.Waygood@Gmail.com>
Thu, 27 Jul 2023 23:57:55 +0000 (00:57 +0100)
committerGitHub <noreply@github.com>
Thu, 27 Jul 2023 23:57:55 +0000 (23:57 +0000)
Lib/test/test_clinic.py

index d21c7d84c88d2dad18102589b07648aad716d834..2f74ee29b204dbf41f5e4dc2e539198e699a1457 100644 (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.