From ba48ea8ae18b6e2895af20104d187ee22a9a551c Mon Sep 17 00:00:00 2001 From: Ben Beasley Date: Thu, 8 Feb 2024 09:40:28 -0500 Subject: [PATCH] Added the network marker to some tests that need DNS (#687) --- tests/test_sockets.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_sockets.py b/tests/test_sockets.py index 91652e67..15016bcd 100644 --- a/tests/test_sockets.py +++ b/tests/test_sockets.py @@ -512,6 +512,7 @@ def serve() -> None: assert not caplog.text +@pytest.mark.network class TestTCPListener: async def test_extra_attributes(self, family: AnyIPAddressFamily) -> None: async with await create_tcp_listener( @@ -1180,6 +1181,7 @@ async def handle(stream: SocketStream) -> None: assert client_addresses == expected_addresses +@pytest.mark.network @pytest.mark.usefixtures("check_asyncio_bug") class TestUDPSocket: async def test_extra_attributes(self, family: AnyIPAddressFamily) -> None: @@ -1305,6 +1307,7 @@ async def test_create_unbound_socket(self, family: AnyIPAddressFamily) -> None: assert local_address[1] > 0 +@pytest.mark.network @pytest.mark.usefixtures("check_asyncio_bug") class TestConnectedUDPSocket: async def test_extra_attributes(self, family: AnyIPAddressFamily) -> None: