Skip to content

Commit f169563

Browse files
committed
test(fixtures): adjust change directory for windows compatibility
1 parent a3cb3a0 commit f169563

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

tests/fixtures/git_repo.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1574,7 +1574,9 @@ def _build_repo_from_definition( # noqa: C901, its required and its just test c
15741574

15751575
# Helpful Transform to find the project root repo without needing to pass it around (ie '/' => repo_dir)
15761576
new_cwd = (
1577-
repo_dir if str(new_cwd) == str(repo_dir.root) else new_cwd
1577+
repo_dir
1578+
if str(new_cwd) == str(Path(repo_dir.root).resolve())
1579+
else new_cwd
15781580
)
15791581

15801582
if not new_cwd.is_dir():

0 commit comments

Comments
 (0)