From 5f36621afa4e0275ad4aea4d65970be504fd7320 Mon Sep 17 00:00:00 2001 From: "Daniel A. Wozniak" Date: Fri, 30 Jun 2023 15:06:32 -0700 Subject: [PATCH] Fix linter warnings --- tests/pytests/unit/transport/test_publish_client.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tests/pytests/unit/transport/test_publish_client.py b/tests/pytests/unit/transport/test_publish_client.py index f07e1e129d1..b8666f3052c 100644 --- a/tests/pytests/unit/transport/test_publish_client.py +++ b/tests/pytests/unit/transport/test_publish_client.py @@ -177,7 +177,7 @@ async def test_publish_client_connect_server_down(transport, io_loop): io_loop.spawn_callback(client.connect) except TimeoutError: pass - except Exception: + except Exception: # pylint: disable=broad-except log.error("Got exception", exc_info=True) assert client._stream is None client.close() @@ -227,8 +227,6 @@ async def test_publish_client_connect_server_comes_up(transport, io_loop): import asyncio import socket - import tornado - client = salt.transport.tcp.TCPPubClient(opts, io_loop, host=host, port=port) # XXX: This is an implimentation detail of the tcp transport. # await client.connect(port)