Skip to content

Commit

Permalink
Skip test on Windows/Trio
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Nov 11, 2024
1 parent d67a150 commit 3cccf1c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_sockets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 3cccf1c

Please sign in to comment.