Skip to content

Commit 37a1899

Browse files
committed
Revert "Fixed issue with stdin flush for libssh clients"
This reverts commit c2554cf.
1 parent fe4f970 commit 37a1899

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

ci/integration_tests/ssh/test_single_client.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -332,11 +332,3 @@ def _disc():
332332
client._disconnect_eagain = _disc
333333
client._connect_init_session_retry(0)
334334
client.disconnect()
335-
336-
def test_stdin(self):
337-
host_out = self.client.run_command('read line; echo $line')
338-
host_out.stdin.write('a line\n')
339-
host_out.stdin.flush()
340-
self.client.wait_finished(host_out)
341-
stdout = list(host_out.stdout)
342-
self.assertListEqual(stdout, ['a line'])

pssh/clients/base/single.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ def write(self, data):
6868

6969
def flush(self):
7070
"""Flush pending data written to stdin."""
71-
if not hasattr(self._channel, "flush"):
72-
return
7371
return self._client._eagain(self._channel.flush)
7472

7573

0 commit comments

Comments
 (0)