Skip to content

Commit c1d5b51

Browse files
author
Dan
committed
Convert str to bytes for py3
1 parent 418c380 commit c1d5b51

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_ssh_client.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,10 +296,10 @@ def test_openssh_config(self):
296296
_server = start_server(_listen_socket)
297297
_port = _listen_socket.getsockname()[1]
298298
_key = USER_KEY_PATH
299-
content = ["""Host %s\n""" % (_host,),
300-
""" User %s\n""" % (_user,),
301-
""" Port %s\n""" % (_port,),
302-
""" IdentityFile %s\n""" % (_key,),
299+
content = [bytes("""Host %s\n""" % (_host,)),
300+
bytes(""" User %s\n""" % (_user,)),
301+
bytes(""" Port %s\n""" % (_port,)),
302+
bytes(""" IdentityFile %s\n""" % (_key,)),
303303
]
304304
config_file.writelines(content)
305305
config_file.flush()

0 commit comments

Comments
 (0)