summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Salvatore <mike.s.salvatore@gmail.com>2022-08-31 13:49:25 -0400
committerMike Salvatore <mike.s.salvatore@gmail.com>2023-03-02 13:30:24 -0500
commit41a5ee82eaa24499d5720fcedf3ccef04ab6fe4b (patch)
tree0357a8ee2ca72e51171bb1362eb98e0cd66d4af7
parentcac71338bdf3f3a97a976942198ab7c3b6912615 (diff)
downloadparamiko-41a5ee82eaa24499d5720fcedf3ccef04ab6fe4b.tar.gz
Wrap test_channel_timeout() to 79 characters
-rw-r--r--tests/test_client.py12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/test_client.py b/tests/test_client.py
index 7b77ef49..01ae2036 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -567,7 +567,11 @@ class SSHClientTest(ClientTest):
def _mock_set_remote_channel(self, chainid, init_window, max_packet_size):
time.sleep(100)
- @patch.object(paramiko.Channel, "_set_remote_channel", _mock_set_remote_channel)
+ @patch.object(
+ paramiko.Channel,
+ "_set_remote_channel",
+ _mock_set_remote_channel
+ )
def test_channel_timeout(self):
"""
verify that the SSHClient has a configurable channel timeout
@@ -578,7 +582,11 @@ class SSHClientTest(ClientTest):
self.tc.set_missing_host_key_policy(paramiko.AutoAddPolicy())
# Actual connection
- self.tc.connect(**dict(self.connect_kwargs, password="pygmalion", channel_timeout=0.5))
+ self.tc.connect(
+ **dict(
+ self.connect_kwargs, password="pygmalion", channel_timeout=0.5
+ )
+ )
self.event.wait(1.0)
self.assertRaises(paramiko.SSHException, self.tc.open_sftp)