Skip to content

Commit c5c052d

Browse files
authored
#18 Rename filelocrepr to reprfileloc (#19)
* #18 Rename filelocrepr to reprfileloc * Use positional arguments This seems to work on pytest version 4.6.x up to 5.4.x (tested locally with python3.7)
1 parent 52ffccb commit c5c052d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pytest_mypy/item.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -301,11 +301,11 @@ def repr_failure(self, excinfo: ExceptionInfo) -> str:
301301
repr_file_location = ReprFileLocation(path=self.fspath,
302302
lineno=self.starting_lineno + excinfo.value.lineno,
303303
message='')
304-
repr_tb_entry = TraceLastReprEntry(filelocrepr=repr_file_location,
305-
lines=exception_repr.reprtraceback.reprentries[-1].lines[1:],
306-
style='short',
307-
reprlocals=None,
308-
reprfuncargs=None)
304+
repr_tb_entry = TraceLastReprEntry(exception_repr.reprtraceback.reprentries[-1].lines[1:],
305+
None,
306+
None,
307+
repr_file_location,
308+
'short')
309309
exception_repr.reprtraceback.reprentries = [repr_tb_entry]
310310
return exception_repr
311311
else:

0 commit comments

Comments
 (0)