[minor] Clearer formatting for stubtest_third_party output (#5856)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2021-08-05 20:16:46 -07:00
committed by GitHub
parent f30d6f6fd0
commit 76eeeee4c4

View File

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