From 8c5a9bfe0254c9f9f505197e0f4dc701bce9f3ad Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Sun, 10 Jul 2022 19:51:36 +0300 Subject: [PATCH] Fixup pylint issues --- libagent/ssh/protocol.py | 2 +- libagent/ssh/tests/test_client.py | 2 +- libagent/tests/test_server.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libagent/ssh/protocol.py b/libagent/ssh/protocol.py index 2c3e8d2..34c0452 100644 --- a/libagent/ssh/protocol.py +++ b/libagent/ssh/protocol.py @@ -167,6 +167,6 @@ class Handler: return util.frame(code, data) -def _unsupported_extension(buf): +def _unsupported_extension(buf): # pylint: disable=unused-argument code = util.pack('B', msg_code('SSH_AGENT_EXTENSION_FAILURE')) return util.frame(code) diff --git a/libagent/ssh/tests/test_client.py b/libagent/ssh/tests/test_client.py index c5cbe25..9c98224 100644 --- a/libagent/ssh/tests/test_client.py +++ b/libagent/ssh/tests/test_client.py @@ -21,7 +21,7 @@ class MockDevice(device.interface.Device): # pylint: disable=abstract-method def package_name(cls): return 'fake-device-agent' - def connect(self): # pylint: disable=no-self-use + def connect(self): return mock.Mock() def pubkey(self, identity, ecdh=False): # pylint: disable=unused-argument diff --git a/libagent/tests/test_server.py b/libagent/tests/test_server.py index 7eb5922..918bf8c 100644 --- a/libagent/tests/test_server.py +++ b/libagent/tests/test_server.py @@ -78,12 +78,12 @@ def test_server_thread(): quit_event = threading.Event() class FakeServer: - def accept(self): # pylint: disable=no-self-use + def accept(self): if not connections: raise socket.timeout() return connections.pop(), 'address' - def getsockname(self): # pylint: disable=no-self-use + def getsockname(self): return 'fake_server' def handle_conn(conn):