Skip to content

Commit d0e9a64

Browse files
committed
s/filelocrepr/reprfileloc
1 parent 11ca979 commit d0e9a64

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/_pytest/_code/code.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -788,9 +788,9 @@ def repr_traceback_entry(
788788
else:
789789
message = excinfo and excinfo.typename or ""
790790
path = self._makepath(entry.path)
791-
filelocrepr = ReprFileLocation(path, entry.lineno + 1, message)
791+
reprfileloc = ReprFileLocation(path, entry.lineno + 1, message)
792792
localsrepr = self.repr_locals(entry.locals)
793-
return ReprEntry(lines, reprargs, localsrepr, filelocrepr, style)
793+
return ReprEntry(lines, reprargs, localsrepr, reprfileloc, style)
794794
if excinfo:
795795
lines.extend(self.get_exconly(excinfo, indent=4))
796796
return ReprEntry(lines, None, None, None, style)

src/_pytest/reports.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ def deserialize_repr_entry(entry_data):
452452
lines=data["lines"],
453453
reprfuncargs=reprfuncargs,
454454
reprlocals=reprlocals,
455-
filelocrepr=reprfileloc,
455+
reprfileloc=reprfileloc,
456456
style=data["style"],
457457
) # type: Union[ReprEntry, ReprEntryNative]
458458
elif entry_type == "ReprEntryNative":

0 commit comments

Comments
 (0)