From 5b46b6a66db43b79c73fbda7b7ae95011bcbe853 Mon Sep 17 00:00:00 2001 From: noobCodec <89281257+noobCodec@users.noreply.github.com> Date: Sat, 1 Nov 2025 14:54:53 -0400 Subject: [PATCH] use abspath if path not provided to preserve symlinks --- mypy/test/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mypy/test/config.py b/mypy/test/config.py index 2dc4208b1e9d..7dd5e3806e6e 100644 --- a/mypy/test/config.py +++ b/mypy/test/config.py @@ -6,7 +6,7 @@ if provided_prefix: PREFIX = provided_prefix else: - this_file_dir = os.path.dirname(os.path.realpath(__file__)) + this_file_dir = os.path.dirname(os.path.abspath(__file__)) PREFIX = os.path.dirname(os.path.dirname(this_file_dir)) # Location of test data files such as test case descriptions.