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:
parent
9c622b57d5
commit
8ca01a4989
3 changed files with 11 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue