瀏覽代碼

Pass host as string.

Jelmer Vernooij 9 年之前
父節點
當前提交
e8950b56ca
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      dulwich/tests/compat/test_client.py

+ 2 - 2
dulwich/tests/compat/test_client.py

@@ -309,7 +309,7 @@ class DulwichTCPClientTest(CompatTestCase, DulwichClientTestBase):
         CompatTestCase.tearDown(self)
         CompatTestCase.tearDown(self)
 
 
     def _client(self):
     def _client(self):
-        return client.TCPGitClient(b'localhost')
+        return client.TCPGitClient('localhost')
 
 
     def _build_path(self, path):
     def _build_path(self, path):
         return path
         return path
@@ -345,7 +345,7 @@ class DulwichMockSSHClientTest(CompatTestCase, DulwichClientTestBase):
         client.get_ssh_vendor = self.real_vendor
         client.get_ssh_vendor = self.real_vendor
 
 
     def _client(self):
     def _client(self):
-        return client.SSHGitClient(b'localhost')
+        return client.SSHGitClient('localhost')
 
 
     def _build_path(self, path):
     def _build_path(self, path):
         return self.gitroot.encode(sys.getfilesystemencoding()) + path
         return self.gitroot.encode(sys.getfilesystemencoding()) + path