Browse Source

skip test_fetch_pack_no_side_band_64k if git protocol v2 is used

Git protocol v2 implies the side-band-64k capability so this test
is meaningless in that case.
Stefan Sperling 9 tháng trước cách đây
mục cha
commit
5b2f74f024
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      tests/compat/test_client.py

+ 2 - 0
tests/compat/test_client.py

@@ -288,6 +288,8 @@ class DulwichClientTestBase:
             self.assertDestEqualsSrc()
 
     def test_fetch_pack_no_side_band_64k(self):
+        if protocol.DEFAULT_GIT_PROTOCOL_VERSION_FETCH >= 2:
+            raise SkipTest("side-band-64k cannot be disabled with git protocol v2")
         c = self._client()
         c._fetch_capabilities.remove(b"side-band-64k")
         with repo.Repo(os.path.join(self.gitroot, "dest")) as dest: