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:
Harshna 2021-10-27 19:20:02 +01:00 committed by GitHub
parent 735d193d14
commit dd2584c894
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -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 + " "