File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -233,7 +233,7 @@ class MypyFileItem(MypyItem):
233
233
def runtest (self ) -> None :
234
234
"""Raise an exception if mypy found errors for this item."""
235
235
results = MypyResults .from_session (self .session )
236
- abspath = str (self .path .absolute ())
236
+ abspath = str (self .path .resolve ())
237
237
errors = results .abspath_errors .get (abspath )
238
238
if errors :
239
239
if not all (
@@ -312,7 +312,7 @@ def from_mypy(
312
312
if opts is None :
313
313
opts = mypy_argv [:]
314
314
abspath_errors = {
315
- str (path .absolute ()): [] for path in paths
315
+ str (path .resolve ()): [] for path in paths
316
316
} # type: MypyResults._abspath_errors_type
317
317
318
318
cwd = Path .cwd ()
@@ -325,7 +325,7 @@ def from_mypy(
325
325
if not line :
326
326
continue
327
327
path , _ , error = line .partition (":" )
328
- abspath = str (Path (path ).absolute ())
328
+ abspath = str (Path (path ).resolve ())
329
329
try :
330
330
abspath_errors [abspath ].append (error )
331
331
except KeyError :
You can’t perform that action at this time.
0 commit comments