fix-musl-getaddrinfo.patch 616 B
diff --git a/trio/tests/test_socket.py b/trio/tests/test_socket.py
index d891041..3f11189 100644
--- a/trio/tests/test_socket.py
+++ b/trio/tests/test_socket.py
@@ -548,6 +548,8 @@ async def test_SocketType_resolve(socket_type, addrs):
# Linux
if hasattr(tsocket, "EAI_ADDRFAMILY"):
expected_errnos.add(tsocket.EAI_ADDRFAMILY)
+ # Linux+musl
+ expected_errnos.add(tsocket.EAI_NODATA)
assert excinfo.value.errno in expected_errnos
# A family where we know nothing about the addresses, so should just