From 92515a6c54f6a5767b03c8ed4af88773c2922038 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Wed, 31 Aug 2022 13:50:29 -0400 Subject: Use a lambda for _mock_set_remote_channel() --- tests/test_client.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tests') 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): """ -- cgit v1.2.3