mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
[minor] Clearer formatting for stubtest_third_party output (#5856)
Co-authored-by: hauntsaninja <>
This commit is contained in:
@@ -107,11 +107,11 @@ def run_stubtest(dist: Path) -> None:
|
||||
print(f"stubtest failed for {dist.name}", file=sys.stderr)
|
||||
if not allowlist_path.exists():
|
||||
print(
|
||||
"\n\nRe-running stubtest with --generate-allowlist. "
|
||||
f"Add the following to {allowlist_path}:\n",
|
||||
file=sys.stderr,
|
||||
"\n\nRe-running stubtest with --generate-allowlist.\n"
|
||||
f"Add the following to {allowlist_path}:"
|
||||
)
|
||||
subprocess.run(cmd + ["--generate-allowlist"], env={"MYPYPATH": str(dist)})
|
||||
print("\n\n")
|
||||
raise StubtestFailed from None
|
||||
else:
|
||||
print(f"stubtest succeeded for {dist.name}", file=sys.stderr)
|
||||
|
||||
Reference in New Issue
Block a user