From 3cccf1ca20644c15586a62833be5464ac45769c2 Mon Sep 17 00:00:00 2001 From: David Brochart Date: Mon, 11 Nov 2024 18:03:00 +0100 Subject: [PATCH] Skip test on Windows/Trio --- tests/test_sockets.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_sockets.py b/tests/test_sockets.py index 1be01e7b..872ea9ca 100644 --- a/tests/test_sockets.py +++ b/tests/test_sockets.py @@ -1852,7 +1852,10 @@ async def test_connect_tcp_getaddrinfo_context() -> None: assert exc_info.value.__context__ is None -async def test_wait_socket_readable() -> None: +async def test_wait_socket_readable(anyio_backend_name) -> None: + if anyio_backend_name == "trio" and sys.platform == "win32": + pytest.skip("Internal error in Trio") + def client(port: int) -> None: with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as sock: sock.connect(("127.0.0.1", port))