From 649bde9c28caeb26555df3a21eb298fa01121676 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Wed, 8 May 2024 20:43:21 +0100 Subject: [PATCH] Fix lint issues --- tests/pytests/functional/transport/tcp/test_message_client.py | 4 +++- tests/pytests/unit/utils/parsers/test_saltfile_mixin.py | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/pytests/functional/transport/tcp/test_message_client.py b/tests/pytests/functional/transport/tcp/test_message_client.py index 292f389000d0..e24dc51aba38 100644 --- a/tests/pytests/functional/transport/tcp/test_message_client.py +++ b/tests/pytests/functional/transport/tcp/test_message_client.py @@ -25,7 +25,9 @@ class TestServer(salt.ext.tornado.tcpserver.TCPServer): send = [] disconnect = False - async def handle_stream(self, stream, address): + async def handle_stream( # pylint: disable=invalid-overridden-method + self, stream, address + ): while self.disconnect is False: for msg in self.send[:]: msg = self.send.pop(0) diff --git a/tests/pytests/unit/utils/parsers/test_saltfile_mixin.py b/tests/pytests/unit/utils/parsers/test_saltfile_mixin.py index fa99f26c0813..1f24a30da7a1 100644 --- a/tests/pytests/unit/utils/parsers/test_saltfile_mixin.py +++ b/tests/pytests/unit/utils/parsers/test_saltfile_mixin.py @@ -2,7 +2,7 @@ Tests the SaltfileMixIn. """ -import optparse +import optparse # pylint: disable=deprecated-module import shutil import pytest