Skip to content

Commit 468d8ad

Browse files
authored
stubtest_third_party: show package versions on failure (#7826)
Co-authored-by: hauntsaninja <>
1 parent 75d2f6c commit 468d8ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/stubtest_third_party.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ def run_stubtest(dist: Path) -> bool:
9393
except subprocess.CalledProcessError:
9494
print(f"stubtest failed for {dist.name}", file=sys.stderr)
9595
print("\n\n", file=sys.stderr)
96+
97+
print("Ran with the following environment:", file=sys.stderr)
98+
subprocess.run([pip_exe, "freeze"])
99+
96100
if allowlist_path.exists():
97101
print(
98102
f'To fix "unused allowlist" errors, remove the corresponding entries from {allowlist_path}', file=sys.stderr

0 commit comments

Comments
 (0)