2
0
Эх сурвалжийг харах

Revert "Attempt to fix test suite on python2.6."

This reverts commit 3b0ed1f9b2d85dc46cae3470978407c2187f189b.
Jelmer Vernooij 9 жил өмнө
parent
commit
4a229200fd

+ 3 - 6
dulwich/tests/test_client.py

@@ -493,14 +493,11 @@ class TestSSHVendor(object):
 
     def __init__(self):
         self.host = None
-        self.command = None
+        self.command = ""
         self.username = None
         self.port = None
 
     def run_command(self, host, command, username=None, port=None):
-        if type(command) is not list:
-            raise TypeError(command)
-
         self.host = host
         self.command = command
         self.username = username
@@ -552,10 +549,10 @@ class SSHGitClientTests(TestCase):
         client.username = b"username"
         client.port = 1337
 
-        client._connect(b"command", b"/path/to/repo")
+        client._connect(b"command", "/path/to/repo")
         self.assertEqual(b"username", server.username)
         self.assertEqual(1337, server.port)
-        self.assertEqual([b"git-command", b"/path/to/repo"], server.command)
+        self.assertEqual(["git-command", "/path/to/repo"], server.command)
 
         client._connect(b"relative-command", "/~/path/to/repo")
         self.assertEqual(["git-relative-command",  "~/path/to/repo"],