From 8327b82a1079f667006f649cb3f1bbdcc8792955 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Sat, 14 Sep 2024 21:18:18 +0500 Subject: [PATCH] Fix test failing on unix --- test/test_index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_index.py b/test/test_index.py index efd5b83a6..c586a0b5a 100644 --- a/test/test_index.py +++ b/test/test_index.py @@ -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)