stubtest_third_party: show package versions on failure (#7826)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2022-05-10 23:08:02 -07:00
committed by GitHub
parent 75d2f6c881
commit 468d8adff1

View File

@@ -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