File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ class MypyFileItem(MypyItem):
166
166
def runtest (self ):
167
167
"""Raise an exception if mypy found errors for this item."""
168
168
results = MypyResults .from_session (self .session )
169
- abspath = os . path . abspath ( str (self .fspath ))
169
+ abspath = str (self .path . absolute ( ))
170
170
errors = results .abspath_errors .get (abspath )
171
171
if errors :
172
172
if not all (
@@ -179,9 +179,9 @@ def runtest(self):
179
179
def reportinfo (self ):
180
180
"""Produce a heading for the test report."""
181
181
return (
182
- self .fspath ,
182
+ self .path ,
183
183
None ,
184
- str (Path ( str ( self .fspath )) .relative_to (self .config .invocation_params .dir )),
184
+ str (self .path .relative_to (self .config .invocation_params .dir )),
185
185
)
186
186
187
187
@@ -271,7 +271,7 @@ def from_session(cls, session) -> "MypyResults":
271
271
except FileNotFoundError :
272
272
results = cls .from_mypy (
273
273
[
274
- Path ( item .fspath )
274
+ item .path
275
275
for item in session .items
276
276
if isinstance (item , MypyFileItem )
277
277
],
You can’t perform that action at this time.
0 commit comments