From 18b2ce38d1ec1b5c41adb5e04f982ff71a3267fc Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Fri, 31 Jul 2026 06:03:17 -0700 Subject: [PATCH] stubtest: show exit code on failure Might help slightly with #16100 --- tests/stubtest_third_party.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/stubtest_third_party.py b/tests/stubtest_third_party.py index fa7d2906cab3..91d46678b54d 100755 --- a/tests/stubtest_third_party.py +++ b/tests/stubtest_third_party.py @@ -149,7 +149,7 @@ def run_stubtest(dist: Path, *, verbose: bool = False, ci_platforms_only: bool = subprocess.run(stubtest_cmd, env=stubtest_env, check=True, capture_output=True) except subprocess.CalledProcessError as e: print_time(time() - t) - print_error("fail") + print_error(f"failed with exit code {e.returncode}") print_divider() print("Commands run:")