Skip to content

Commit 212c552

Browse files
committed
helpconfig: add invocation dir to debug output
The current WD is not supposed to matter, the invocation dir is what should be relevant. But keep them both for debugging.
1 parent 34fafe4 commit 212c552

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/_pytest/helpconfig.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,11 @@ def pytest_cmdline_parse() -> Generator[None, Config, Config]:
109109
debugfile = open(path, "w", encoding="utf-8")
110110
debugfile.write(
111111
"versions pytest-%s, "
112-
"python-%s\ncwd=%s\nargs=%s\n\n"
112+
"python-%s\ninvocation_dir=%s\ncwd=%s\nargs=%s\n\n"
113113
% (
114114
pytest.__version__,
115115
".".join(map(str, sys.version_info)),
116+
config.invocation_params.dir,
116117
os.getcwd(),
117118
config.invocation_params.args,
118119
)

0 commit comments

Comments
 (0)