Skip to content

Commit ba48ea8

Browse files
Added the network marker to some tests that need DNS (#687)
1 parent 5426f7b commit ba48ea8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/test_sockets.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,7 @@ def serve() -> None:
512512
assert not caplog.text
513513

514514

515+
@pytest.mark.network
515516
class TestTCPListener:
516517
async def test_extra_attributes(self, family: AnyIPAddressFamily) -> None:
517518
async with await create_tcp_listener(
@@ -1180,6 +1181,7 @@ async def handle(stream: SocketStream) -> None:
11801181
assert client_addresses == expected_addresses
11811182

11821183

1184+
@pytest.mark.network
11831185
@pytest.mark.usefixtures("check_asyncio_bug")
11841186
class TestUDPSocket:
11851187
async def test_extra_attributes(self, family: AnyIPAddressFamily) -> None:
@@ -1305,6 +1307,7 @@ async def test_create_unbound_socket(self, family: AnyIPAddressFamily) -> None:
13051307
assert local_address[1] > 0
13061308

13071309

1310+
@pytest.mark.network
13081311
@pytest.mark.usefixtures("check_asyncio_bug")
13091312
class TestConnectedUDPSocket:
13101313
async def test_extra_attributes(self, family: AnyIPAddressFamily) -> None:

0 commit comments

Comments
 (0)