Преглед изворни кода

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

John Carr пре 16 година
родитељ
комит
1bf773ad41
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      dulwich/tests/test_pack.py

+ 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):