mirror of
https://github.com/Kozea/Radicale.git
synced 2025-08-07 18:30:54 +00:00
Fix test on MacOS (3)
This commit is contained in:
parent
ee984b49d4
commit
f46a3e3d24
2 changed files with 6 additions and 2 deletions
|
@ -223,12 +223,15 @@ def serve(configuration, shutdown_socket):
|
|||
isinstance(e, socket.gaierror) and (
|
||||
# Hostname does not exist or doesn't have
|
||||
# address for address family
|
||||
# macOS: IPv6 address for INET address family
|
||||
e.errno == socket.EAI_NONAME or
|
||||
# Address not for address family
|
||||
e.errno == COMPAT_EAI_ADDRFAMILY) or
|
||||
# Workaround for PyPy
|
||||
str(e) == "address family mismatched" or
|
||||
# Address family not available (e.g. IPv6 disabled)
|
||||
# macOS: IPv4 address for INET6 address family with
|
||||
# IPV6_V6ONLY set
|
||||
e.errno == errno.EADDRNOTAVAIL)):
|
||||
continue
|
||||
raise RuntimeError("Failed to start server %r: %s" % (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue