Skip to content

Commit 8327b82

Browse files
committed
Fix test failing on unix
1 parent 4674059 commit 8327b82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎test/test_index.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1189,7 +1189,7 @@ def test_index_add_non_normalized_path(self, rw_repo):
11891189
file.touch()
11901190
non_normalized_path=file.as_posix()
11911191
ifos.name!="nt":
1192-
non_normalized_path=non_normalized_path.replace("/", "\\")
1192+
non_normalized_path="/"+non_normalized_path[1:].replace("/", "//")
11931193

11941194
rw_repo.index.add(non_normalized_path)
11951195

0 commit comments

Comments
(0)