فهرست منبع

Support python3 for TCP client compat tests.

Jelmer Vernooij 10 سال پیش
والد
کامیت
08221b1b3b
1فایلهای تغییر یافته به همراه2 افزوده شده و 3 حذف شده
  1. 2 3
      dulwich/tests/compat/test_client.py

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

@@ -248,7 +248,6 @@ class DulwichClientTestBase(object):
         self.assertFalse(b"refs/heads/abranch" in dest.refs)
 
 
-@skipIfPY3
 class DulwichTCPClientTest(CompatTestCase, DulwichClientTestBase):
 
     def setUp(self):
@@ -292,10 +291,10 @@ class DulwichTCPClientTest(CompatTestCase, DulwichClientTestBase):
         CompatTestCase.tearDown(self)
 
     def _client(self):
-        return client.TCPGitClient('localhost')
+        return client.TCPGitClient(b'localhost')
 
     def _build_path(self, path):
-        return path
+        return path.encode(sys.getfilesystemencoding())
 
 
 class TestSSHVendor(object):