changeset 36250:7a46f0735904

py3: add b'' to test-sshserver.py # skip-blame because adding b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D2273
author Gregory Szorc <gregory.szorc@gmail.com>
date Wed, 14 Feb 2018 17:23:26 -0700
parents 30cc9f9780df
children b67d4b7e8235
files tests/test-sshserver.py
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-sshserver.py	Wed Feb 14 17:21:42 2018 -0700
+++ b/tests/test-sshserver.py	Wed Feb 14 17:23:26 2018 -0700
@@ -14,12 +14,12 @@
 class SSHServerGetArgsTests(unittest.TestCase):
     def testparseknown(self):
         tests = [
-            ('* 0\nnodes 0\n', ['', {}]),
-            ('* 0\nnodes 40\n1111111111111111111111111111111111111111\n',
-             ['1111111111111111111111111111111111111111', {}]),
+            (b'* 0\nnodes 0\n', [b'', {}]),
+            (b'* 0\nnodes 40\n1111111111111111111111111111111111111111\n',
+             [b'1111111111111111111111111111111111111111', {}]),
         ]
         for input, expected in tests:
-            self.assertparse('known', input, expected)
+            self.assertparse(b'known', input, expected)
 
     def assertparse(self, cmd, input, expected):
         server = mockserver(input)