浏览代码

Cherry-pick test for large buffer deltas.

Original change from yifanzhang at https://github.com/yifanzhang/dulwich
Jelmer Vernooij 12 年之前
父节点
当前提交
2b3f611664
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      dulwich/tests/test_pack.py

+ 5 - 0
dulwich/tests/test_pack.py

@@ -162,6 +162,7 @@ class TestPackDeltas(TestCase):
 
     test_string_empty = ''
     test_string_big = 'Z' * 8192
+    test_string_huge = 'Z' * 100000
 
     def _test_roundtrip(self, base, target):
         self.assertEqual(target,
@@ -179,6 +180,10 @@ class TestPackDeltas(TestCase):
     def test_overflow(self):
         self._test_roundtrip(self.test_string_empty, self.test_string_big)
 
+    def test_overflow_64k(self):
+        self.skipTest("big strings don't work yet")
+        self._test_roundtrip(self.test_string_huge, self.test_string_huge)
+
 
 class TestPackData(PackTests):
     """Tests getting the data from the packfile."""