We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56ec42e commit 406cf9aCopy full SHA for 406cf9a
tests/test_ssh_client.py
@@ -140,7 +140,8 @@ def test_ssh_client_pty(self):
140
"""Test that we get a new pty for our non-interactive SSH sessions"""
141
server = start_server({ self.fake_cmd : self.fake_resp },
142
self.listen_socket)
143
- client = SSHClient('127.0.0.1', port=self.listen_port)
+ client = SSHClient('127.0.0.1', port=self.listen_port,
144
+ pkey=self.user_key)
145
channel = client.client.get_transport().open_session()
146
self.assertFalse(channel.event.is_set(),
147
msg="Got pty without requesting it")
0 commit comments