Skip to content

Commit

Permalink
Added the network marker to some tests that need DNS (#687)
Browse files Browse the repository at this point in the history
  • Loading branch information
musicinmybrain committed Feb 8, 2024
1 parent 5426f7b commit ba48ea8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_sockets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit ba48ea8

Please sign in to comment.