From dd2584c894655e32c51891ffc389bf5b7a86fe2f Mon Sep 17 00:00:00 2001 From: Harshna <43389959+hp310780@users.noreply.github.com> Date: Wed, 27 Oct 2021 19:20:02 +0100 Subject: [PATCH] Update src/_pytest/terminal.py Change variable to Path object in place Co-authored-by: Ran Benita --- src/_pytest/terminal.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/_pytest/terminal.py b/src/_pytest/terminal.py index 1eeabd1ad..96648d86c 100644 --- a/src/_pytest/terminal.py +++ b/src/_pytest/terminal.py @@ -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 + " "