@@ -205,7 +205,7 @@ def test_ssh_agent_authentication(self):
205205 agent .add_key (USER_KEY )
206206 client = SSHClient (self .host , port = self .listen_port ,
207207 agent = agent )
208- channel , host , stdout , stderr = client .exec_command (self .fake_cmd )
208+ channel , host , stdout , stderr , stdin = client .exec_command (self .fake_cmd )
209209 output = list (stdout )
210210 stderr = list (stderr )
211211 expected = [self .fake_resp ]
@@ -254,7 +254,7 @@ def test_ssh_client_utf_encoding(self):
254254 pkey = self .user_key )
255255 expected = [u'é' ]
256256 cmd = u"echo 'é'"
257- channel , host , stdout , stderr = client .exec_command (cmd )
257+ channel , host , stdout , stderr , stdin = client .exec_command (cmd )
258258 output = list (stdout )
259259 self .assertEqual (expected , output ,
260260 msg = "Got unexpected unicode output %s - expected %s" % (
@@ -266,7 +266,7 @@ def test_ssh_client_pty(self):
266266 and that shell commands fail accordingly"""
267267 client = SSHClient (self .host , port = self .listen_port ,
268268 pkey = self .user_key )
269- channel , host , stdout , stderr = client .exec_command (self .fake_cmd , use_shell = False )
269+ channel , host , stdout , stderr , stdin = client .exec_command (self .fake_cmd , use_shell = False )
270270 output = list (stdout )
271271 stderr = list (stderr )
272272 expected = []
@@ -276,7 +276,7 @@ def test_ssh_client_pty(self):
276276 self .assertTrue (exit_code == 127 ,
277277 msg = "Expected cmd not found error code 127, got %s instead" % (
278278 exit_code ,))
279- channel , host , stdout , stderr = client .exec_command ('id' , use_shell = False )
279+ channel , host , stdout , stderr , stdin = client .exec_command ('id' , use_shell = False )
280280 output = list (stdout )
281281 exit_code = channel .recv_exit_status ()
282282 self .assertTrue (output ,
0 commit comments