diff --git a/tests/atlocal.in b/tests/atlocal.in index 4e626266b01..6fc30cbf8e1 100644 --- a/tests/atlocal.in +++ b/tests/atlocal.in @@ -123,7 +123,7 @@ import sys try: socket.socket(family=socket.AF_INET6).bind(("::1", 0, 0, 0)) except socket.error as e: - if e.errno == errno.EAFNOSUPPORT: + if e.errno == errno.EAFNOSUPPORT or errno.EADDRNOTAVAIL: sys.exit(2) raise '