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(
|
if self.verbosity >= 2 and nodeid.split("::")[0] != fspath.replace(
|
||||||
"\\", nodes.SEP
|
"\\", nodes.SEP
|
||||||
):
|
):
|
||||||
fs_path = Path(fspath)
|
res += " <- " + bestrelpath(self.startpath, Path(fspath))
|
||||||
res += " <- " + bestrelpath(self.startpath, fs_path)
|
|
||||||
else:
|
else:
|
||||||
res = "[location]"
|
res = "[location]"
|
||||||
return res + " "
|
return res + " "
|
||||||
|
|
Loading…
Reference in New Issue