We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b6ebb1 commit 1c028f7Copy full SHA for 1c028f7
mypy/test/config.py
@@ -1,12 +1,12 @@
1
from __future__ import annotations
2
3
import os.path
4
-
+from pathlib import PurePath
5
provided_prefix = os.getenv("MYPY_TEST_PREFIX", None)
6
if provided_prefix:
7
PREFIX = provided_prefix
8
else:
9
- this_file_dir = os.path.dirname(os.path.realpath(__file__))
+ this_file_dir = os.path.dirname(PurePath(__file__))
10
PREFIX = os.path.dirname(os.path.dirname(this_file_dir))
11
12
# Location of test data files such as test case descriptions.
0 commit comments