summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Salvatore <mike.s.salvatore@gmail.com>2022-08-31 13:50:29 -0400
committerMike Salvatore <mike.s.salvatore@gmail.com>2023-03-02 13:30:24 -0500
commit92515a6c54f6a5767b03c8ed4af88773c2922038 (patch)
tree84209548b09631d25563ae318f2e33e1139a6417
parent41a5ee82eaa24499d5720fcedf3ccef04ab6fe4b (diff)
downloadparamiko-92515a6c54f6a5767b03c8ed4af88773c2922038.tar.gz
Use a lambda for _mock_set_remote_channel()
-rw-r--r--tests/test_client.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/test_client.py b/tests/test_client.py
index 01ae2036..a991478a 100644
--- a/tests/test_client.py
+++ b/tests/test_client.py
@@ -564,13 +564,10 @@ class SSHClientTest(ClientTest):
auth_timeout=0.5,
)
- 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
+ lambda *args, **kwargs: time.sleep(100)
)
def test_channel_timeout(self):
"""