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 )