Commit Diff


commit - 5b2f74f024a5521039a7a2ae5af6a825bab209cb
commit + 0e18ede32f1d8c0db2a97f49b22babdd9412e72a
blob - 4535db8f62d30d443ead34aafc4899b0b951114e
blob + e03d84e0798915814ff897ea30c54dd057ff8d9f
--- tests/compat/test_client.py
+++ tests/compat/test_client.py
@@ -33,6 +33,7 @@ import tempfile
 import threading
 from contextlib import suppress
 from io import BytesIO
+from unittest.mock import patch
 from urllib.parse import unquote
 
 from dulwich import client, file, index, objects, protocol, repo
@@ -420,6 +421,11 @@ class DulwichTCPClientTest(CompatTestCase, DulwichClie
         # This test fails intermittently on my machine, probably due to some sort
         # of race condition. Probably also related to #1015
         self.skipTest("skip flaky test; see #1015")
+
+
+@patch("dulwich.protocol.DEFAULT_GIT_PROTOCOL_VERSION_FETCH", new=0)
+class DulwichTCPClientTestGitProtov0(DulwichTCPClientTest):
+    pass
 
 
 class TestSSHVendor:
@@ -472,6 +478,11 @@ class DulwichMockSSHClientTest(CompatTestCase, Dulwich
         return self.gitroot + path
 
 
+@patch("dulwich.protocol.DEFAULT_GIT_PROTOCOL_VERSION_FETCH", new=0)
+class DulwichMockSSHClientTestGitProtov0(DulwichMockSSHClientTest):
+    pass
+
+
 class DulwichSubprocessClientTest(CompatTestCase, DulwichClientTestBase):
     def setUp(self):
         CompatTestCase.setUp(self)
@@ -488,6 +499,11 @@ class DulwichSubprocessClientTest(CompatTestCase, Dulw
         return self.gitroot + path
 
 
+@patch("dulwich.protocol.DEFAULT_GIT_PROTOCOL_VERSION_FETCH", new=0)
+class DulwichSubprocessClientTestGitProtov0(DulwichSubprocessClientTest):
+    pass
+
+
 class GitHTTPRequestHandler(http.server.SimpleHTTPRequestHandler):
     """HTTP Request handler that calls out to 'git http-backend'."""
 
@@ -674,3 +690,8 @@ class DulwichHttpClientTest(CompatTestCase, DulwichCli
 
     def test_archive(self):
         raise SkipTest("exporting archives not supported over http")
+
+
+@patch("dulwich.protocol.DEFAULT_GIT_PROTOCOL_VERSION_FETCH", new=0)
+class DulwichHttpClientTestGitProtov0(DulwichHttpClientTest):
+    pass