Skip to content

Commit 57dd47c

Browse files
authored
Update conftest.py debugging activation
1 parent 40da344 commit 57dd47c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: conftest.py

+4
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def gunittest_datadir(
4848
monkeypatch: pytest.MonkeyPatch, request: pytest.FixtureRequest, tmp_path: Path
4949
) -> None:
5050
"""Fixture to change directory to a temporary directory containing a copy of the data directory"""
51+
print("request.path: ", request.path)
5152
parent_path = request.path.parent
5253
if parent_path.name == "testsuite":
5354
original_data_path = os.path.join(parent_path, "data")
@@ -56,9 +57,12 @@ def gunittest_datadir(
5657
and os.path.basename(os.path.dirname(original_data_path)) == "testsuite"
5758
):
5859
temp_path = tmp_path / "data"
60+
print("in a testsuite/data folder, copying to", temp_path)
5961
shutil.copytree(
6062
src=_win32_longpath(original_data_path),
6163
dst=_win32_longpath(str(temp_path)),
6264
)
6365

6466
monkeypatch.chdir(tmp_path)
67+
else:
68+
print("not in a testsuite dir"

0 commit comments

Comments
 (0)