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 ce57cd7 commit 19f0beeCopy full SHA for 19f0bee
tests/test_pssh_client.py
@@ -194,13 +194,16 @@ def test_pssh_client_ssh_exception(self):
194
server = start_server({ self.fake_cmd : self.fake_resp },
195
self.listen_socket,
196
ssh_exception=True)
197
- client = ParallelSSHClient(['127.0.0.1'], port=self.listen_port,
198
- pkey=self.user_key)
+ client = ParallelSSHClient(['127.0.0.1'],
+ user='fakey', password='fakey',
199
+ port=self.listen_port,
200
+ pkey=paramiko.RSAKey.generate(1024),
201
+ )
202
# Handle exception
203
try:
204
client.run_command(self.fake_cmd)
205
raise Exception("Expected SSHException, got none")
- except SSHException, ex:
206
+ except SSHException:
207
pass
208
del client
209
server.join()
0 commit comments