Skip to content

Commit 76c26ea

Browse files
authored
gh-106368: Argument clinic tests: improve failure message when tests in ClinicExternalTests fail (#107364)
1 parent c2b1689 commit 76c26ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_clinic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ def _do_test(self, *args, expect_success=True):
13861386
) as proc:
13871387
proc.wait()
13881388
if expect_success and proc.returncode:
1389-
self.fail("".join(proc.stderr))
1389+
self.fail("".join([*proc.stdout, *proc.stderr]))
13901390
stdout = proc.stdout.read()
13911391
stderr = proc.stderr.read()
13921392
# Clinic never writes to stderr.

0 commit comments

Comments
 (0)