From bd6f768383d1ba25c77b51ad28892b1b3c6ad201 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 5 Sep 2024 09:08:17 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_sockets.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/test_sockets.py b/tests/test_sockets.py index b69784af..5ccab358 100644 --- a/tests/test_sockets.py +++ b/tests/test_sockets.py @@ -1657,7 +1657,9 @@ def socket_path_or_str(self, request: SubRequest, socket_path: Path) -> Path | s @pytest.fixture( params=[ pytest.param("path", id="path-peer"), - pytest.param("abstract", marks=[skip_unix_abstract_mark], id="abstract-peer"), + pytest.param( + "abstract", marks=[skip_unix_abstract_mark], id="abstract-peer" + ), ] ) def peer_socket_path(self) -> Generator[Path, None, None]: @@ -1693,8 +1695,12 @@ async def test_extra_attributes( raw_socket = unix_dg.extra(SocketAttribute.raw_socket) assert raw_socket is not None assert unix_dg.extra(SocketAttribute.family) == AddressFamily.AF_UNIX - assert os.fsencode(unix_dg.extra(SocketAttribute.local_address)) == os.fsencode(socket_path) - assert os.fsencode(unix_dg.extra(SocketAttribute.remote_address)) == os.fsencode(peer_socket_path) + assert os.fsencode( + unix_dg.extra(SocketAttribute.local_address) + ) == os.fsencode(socket_path) + assert os.fsencode( + unix_dg.extra(SocketAttribute.remote_address) + ) == os.fsencode(peer_socket_path) pytest.raises( TypedAttributeLookupError, unix_dg.extra, SocketAttribute.local_port )