Explorar o código

Fix FileSystemBackendTests.test_absolute on windows python3.

Gary van der Merwe %!s(int64=10) %!d(string=hai) anos
pai
achega
8fb1ed9b75
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      dulwich/tests/test_server.py

+ 3 - 1
dulwich/tests/test_server.py

@@ -841,7 +841,9 @@ class FileSystemBackendTests(TestCase):
 
     def test_absolute(self):
         repo = self.backend.open_repository(self.path)
-        self.assertEqual(os.path.abspath(repo.path), os.path.abspath(self.repo.path))
+        self.assertEqual(
+            os.path.normcase(os.path.abspath(repo.path)),
+            os.path.normcase(os.path.abspath(self.repo.path)))
 
     def test_child(self):
         self.assertRaises(NotGitRepository,