Explorar o código

test_pack: simpler assertion that passes in more places

Change-Id: I224f251f791f1baf94910cc389797bf08139509a
Augie Fackler %!s(int64=15) %!d(string=hai) anos
pai
achega
7f11aff189
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      dulwich/tests/test_pack.py

+ 2 - 2
dulwich/tests/test_pack.py

@@ -136,8 +136,8 @@ class TestPackDeltas(unittest.TestCase):
     test_string_big = 'Z' * 8192
 
     def _test_roundtrip(self, base, target):
-        self.assertEquals([target],
-                          apply_delta(base, create_delta(base, target)))
+        self.assertEquals(target,
+                          ''.join(apply_delta(base, create_delta(base, target))))
 
     def test_nochange(self):
         self._test_roundtrip(self.test_string1, self.test_string1)