Skip to content

Commit

Permalink
Fix test failing on unix
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrej730 committed Sep 14, 2024
1 parent 4674059 commit 8327b82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,7 @@ def test_index_add_non_normalized_path(self, rw_repo):
file.touch()
non_normalized_path = file.as_posix()
if os.name != "nt":
non_normalized_path = non_normalized_path.replace("/", "\\")
non_normalized_path = "/" + non_normalized_path[1:].replace("/", "//")

rw_repo.index.add(non_normalized_path)

Expand Down

0 comments on commit 8327b82

Please sign in to comment.