瀏覽代碼

Fix test on windows

Jelmer Vernooij 1 月之前
父節點
當前提交
01540a0ce5
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      tests/test_repository.py

+ 2 - 1
tests/test_repository.py

@@ -134,7 +134,8 @@ class CreateRepositoryTests(TestCase):
         # Test that refpath works with pathlib
         ref_path = repo.refs.refpath(b"refs/heads/master")
         self.assertTrue(isinstance(ref_path, bytes))
-        self.assertEqual(ref_path, os.path.join(tmp_dir.encode(), b"refs/heads/master"))
+        expected_path = os.path.join(tmp_dir.encode(), b"refs", b"heads", b"master")
+        self.assertEqual(ref_path, expected_path)
 
     def test_create_disk_non_bare_pathlib(self) -> None:
         from pathlib import Path