]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-106368: Argument clinic tests: improve failure message when tests in `Clini...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 28 Jul 2023 00:36:34 +0000 (17:36 -0700)
committerGitHub <noreply@github.com>
Fri, 28 Jul 2023 00:36:34 +0000 (00:36 +0000)
gh-106368: Argument clinic tests: improve failure message when tests in `ClinicExternalTests` fail (GH-107364)
(cherry picked from commit 76c26eaca4147ba7e3e8d7379c5a828f0b512a46)

Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Lib/test/test_clinic.py

index 32c4b1e67f95749c1eb04f0781bafd70b6ed7232..1c01fb0ed36888a014b24b59353f417b93cc6c12 100644 (file)
@@ -1306,7 +1306,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.