1
0
Fork 0
mirror of https://github.com/Kozea/Radicale.git synced 2025-06-26 16:45:52 +00:00

Fix integrated server on android

This commit is contained in:
Unrud 2020-04-09 22:01:55 +02:00
parent 9c622b57d5
commit 8ca01a4989
3 changed files with 11 additions and 4 deletions

View file

@ -128,8 +128,9 @@ class TestBaseServerRequests(BaseTest):
sock.bind((address, 0))
# See ``radicale.server.serve``
assert (isinstance(exc_info.value, socket.gaierror) and
exc_info.value.errno in (socket.EAI_NONAME,
server.COMPAT_EAI_ADDRFAMILY) or
exc_info.value.errno in (
socket.EAI_NONAME, server.COMPAT_EAI_ADDRFAMILY,
server.COMPAT_EAI_NODATA) or
str(exc_info.value) == "address family mismatched" or
exc_info.value.errno == errno.EADDRNOTAVAIL)