From 38569b6bb4d44ea8bf788adaa52f223404c4e6be Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Fri, 10 May 2024 01:44:42 -0700 Subject: [PATCH] stubtest: fix path (#11884) --- tests/stubtest_third_party.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/stubtest_third_party.py b/tests/stubtest_third_party.py index 513eeab67..ce0663166 100755 --- a/tests/stubtest_third_party.py +++ b/tests/stubtest_third_party.py @@ -150,12 +150,11 @@ def run_stubtest( print_command_output(ret) print_divider() - allowlist_path_relative = allowlist_path.relative_to(Path.cwd()) if allowlist_path.exists(): - print(f'To fix "unused allowlist" errors, remove the corresponding entries from {allowlist_path_relative}') + print(f'To fix "unused allowlist" errors, remove the corresponding entries from {allowlist_path}') print() else: - print(f"Re-running stubtest with --generate-allowlist.\nAdd the following to {allowlist_path_relative}:") + print(f"Re-running stubtest with --generate-allowlist.\nAdd the following to {allowlist_path}:") ret = subprocess.run([*stubtest_cmd, "--generate-allowlist"], env=stubtest_env, capture_output=True) print_command_output(ret)