Skip to content

Commit 19a0196

Browse files
committed
fix: write portable TOML paths in config tests
- use POSIX path strings for generated TOML in git_dir/work_tree tests - avoid Windows backslash escape parsing failures under tomllib
1 parent b7202fc commit 19a0196

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,9 @@ def test_git_dir_work_tree_requires_allowlist_policy(tmp_path):
210210
tmp_path,
211211
f"""
212212
[[repos]]
213-
path = "{work}"
214-
git_dir = "{git_dir}"
215-
work_tree = "{work}"
213+
path = "{work.as_posix()}"
214+
git_dir = "{git_dir.as_posix()}"
215+
work_tree = "{work.as_posix()}"
216216
""",
217217
)
218218
)

0 commit comments

Comments
 (0)