From 468d8adff131c77c599a730736380c893ddbb529 Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Tue, 10 May 2022 23:08:02 -0700 Subject: [PATCH] stubtest_third_party: show package versions on failure (#7826) Co-authored-by: hauntsaninja <> --- tests/stubtest_third_party.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/stubtest_third_party.py b/tests/stubtest_third_party.py index b02a7cec2..48bf48ff2 100755 --- a/tests/stubtest_third_party.py +++ b/tests/stubtest_third_party.py @@ -93,6 +93,10 @@ def run_stubtest(dist: Path) -> bool: except subprocess.CalledProcessError: print(f"stubtest failed for {dist.name}", file=sys.stderr) print("\n\n", file=sys.stderr) + + print("Ran with the following environment:", file=sys.stderr) + subprocess.run([pip_exe, "freeze"]) + if allowlist_path.exists(): print( f'To fix "unused allowlist" errors, remove the corresponding entries from {allowlist_path}', file=sys.stderr