commit - 5b2f74f024a5521039a7a2ae5af6a825bab209cb
commit + 0e18ede32f1d8c0db2a97f49b22babdd9412e72a
blob - 4535db8f62d30d443ead34aafc4899b0b951114e
blob + e03d84e0798915814ff897ea30c54dd057ff8d9f
--- tests/compat/test_client.py
+++ tests/compat/test_client.py
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
# 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:
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)
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'."""
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