mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-04 19:28:50 +08:00
Fix prints in stubtest_third_party (#6380)
This commit is contained in:
1 parent
b09e528f64
commit
32a38e787f
1 file changed
+4
-2
@@ -105,9 +105,11 @@ def run_stubtest(dist: Path) -> None:
|
||||
print(f"stubtest failed for {dist.name}", file=sys.stderr)
|
||||
print("\n\n", file=sys.stderr)
|
||||
if allowlist_path.exists():
|
||||
print('To fix "unused allowlist" errors, remove the corresponding entries from {allowlist_path}', file=sys.stderr)
|
||||
print(
|
||||
f'To fix "unused allowlist" errors, remove the corresponding entries from {allowlist_path}', file=sys.stderr
|
||||
)
|
||||
else:
|
||||
print("Re-running stubtest with --generate-allowlist.\nAdd the following to {allowlist_path}:", file=sys.stderr)
|
||||
print(f"Re-running stubtest with --generate-allowlist.\nAdd the following to {allowlist_path}:", file=sys.stderr)
|
||||
subprocess.run(cmd + ["--generate-allowlist"], env={"MYPYPATH": str(dist)})
|
||||
print("\n\n", file=sys.stderr)
|
||||
raise StubtestFailed from None
|
||||
|
||||
Reference in new issue
Block a user