##// END OF EJS Templates
py3: add b'' to test-sshserver.py...
Gregory Szorc -
r36230:7a46f073 default
parent child Browse files
Show More
@@ -14,12 +14,12 b' from mercurial import ('
14 class SSHServerGetArgsTests(unittest.TestCase):
14 class SSHServerGetArgsTests(unittest.TestCase):
15 def testparseknown(self):
15 def testparseknown(self):
16 tests = [
16 tests = [
17 ('* 0\nnodes 0\n', ['', {}]),
17 (b'* 0\nnodes 0\n', [b'', {}]),
18 ('* 0\nnodes 40\n1111111111111111111111111111111111111111\n',
18 (b'* 0\nnodes 40\n1111111111111111111111111111111111111111\n',
19 ['1111111111111111111111111111111111111111', {}]),
19 [b'1111111111111111111111111111111111111111', {}]),
20 ]
20 ]
21 for input, expected in tests:
21 for input, expected in tests:
22 self.assertparse('known', input, expected)
22 self.assertparse(b'known', input, expected)
23
23
24 def assertparse(self, cmd, input, expected):
24 def assertparse(self, cmd, input, expected):
25 server = mockserver(input)
25 server = mockserver(input)
General Comments 0
You need to be logged in to leave comments. Login now