Skip to content

Commit d31b113

Browse files
committed
WIP,TST: Add drive to path for windows.
1 parent 61d4b98 commit d31b113

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

numpydoc/tests/hooks/test_utils.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ def test_find_project_root(tmp_path, request, reason_file, files, expected_reaso
2323
(tmp_path / reason_file).touch()
2424

2525
if files:
26-
expected_dir = Path(tmp_path.root) if expected_reason == "file system root" else tmp_path
26+
if expected_reason == "file system root":
27+
expected_dir = Path(tmp_path.drive + tmp_path.root)
28+
else:
29+
expected_dir = tmp_path
30+
2731
for file in files:
2832
(tmp_path / file).touch()
2933
else:

0 commit comments

Comments
 (0)