Fix linter warnings

This commit is contained in:
Daniel A. Wozniak 2023-06-30 15:06:32 -07:00 committed by Gareth J. Greenaway
parent 7b58472599
commit 5f36621afa

View file

@ -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)