Pass host as string.
authorJelmer Vernooij <jelmer@jelmer.uk>
Sun, 13 Sep 2015 13:34:36 +0000 (13:34 +0000)
committerJelmer Vernooij <jelmer@jelmer.uk>
Sun, 13 Sep 2015 13:34:36 +0000 (13:34 +0000)
dulwich/tests/compat/test_client.py

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