Skip to content

Commit 406cf9a

Browse files
author
Dan
committed
Add pkey to test
1 parent 56ec42e commit 406cf9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_ssh_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ def test_ssh_client_pty(self):
140140
"""Test that we get a new pty for our non-interactive SSH sessions"""
141141
server = start_server({ self.fake_cmd : self.fake_resp },
142142
self.listen_socket)
143-
client = SSHClient('127.0.0.1', port=self.listen_port)
143+
client = SSHClient('127.0.0.1', port=self.listen_port,
144+
pkey=self.user_key)
144145
channel = client.client.get_transport().open_session()
145146
self.assertFalse(channel.event.is_set(),
146147
msg="Got pty without requesting it")

0 commit comments

Comments
 (0)