2
0
Эх сурвалжийг харах

Provide fake path when copying a pack in tests - long term this needs a better solution

John Carr 16 жил өмнө
parent
commit
1bf773ad41

+ 1 - 1
dulwich/tests/test_pack.py

@@ -190,7 +190,7 @@ class TestPack(PackTests):
 
     def test_copy(self):
         p = self.get_pack(pack1_sha)
-        write_pack("Elch", p.iterobjects(), len(p))
+        write_pack("Elch", [(x, "") for x in p.iterobjects()], len(p))
         self.assertEquals(p, Pack("Elch"))
 
     def test_commit_obj(self):