Update src/_pytest/terminal.py
Change variable to Path object in place Co-authored-by: Ran Benita <ran@unusedvar.com>
This commit is contained in:
parent
735d193d14
commit
dd2584c894
|
@ -880,8 +880,7 @@ class TerminalReporter:
|
|||
if self.verbosity >= 2 and nodeid.split("::")[0] != fspath.replace(
|
||||
"\\", nodes.SEP
|
||||
):
|
||||
fs_path = Path(fspath)
|
||||
res += " <- " + bestrelpath(self.startpath, fs_path)
|
||||
res += " <- " + bestrelpath(self.startpath, Path(fspath))
|
||||
else:
|
||||
res = "[location]"
|
||||
return res + " "
|
||||
|
|
Loading…
Reference in New Issue