From 32a38e787f49be0f5b090f5f091774e1456ae2b4 Mon Sep 17 00:00:00 2001 From: Akuli Date: Thu, 25 Nov 2021 23:09:14 +0200 Subject: [PATCH] Fix prints in stubtest_third_party (#6380) --- tests/stubtest_third_party.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/stubtest_third_party.py b/tests/stubtest_third_party.py index 24501ec38..799665965 100755 --- a/tests/stubtest_third_party.py +++ b/tests/stubtest_third_party.py @@ -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