Ver código fonte

Fix test on windows

Jelmer Vernooij 1 mês atrás
pai
commit
01540a0ce5
1 arquivos alterados com 2 adições e 1 exclusões
  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