Skip to content

Commit 1c028f7

Browse files
committed
Updates to config
1 parent 1b6ebb1 commit 1c028f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mypy/test/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
from __future__ import annotations
22

33
import os.path
4-
4+
from pathlib import PurePath
55
provided_prefix = os.getenv("MYPY_TEST_PREFIX", None)
66
if provided_prefix:
77
PREFIX = provided_prefix
88
else:
9-
this_file_dir = os.path.dirname(os.path.realpath(__file__))
9+
this_file_dir = os.path.dirname(PurePath(__file__))
1010
PREFIX = os.path.dirname(os.path.dirname(this_file_dir))
1111

1212
# Location of test data files such as test case descriptions.

0 commit comments

Comments
 (0)