This commit is contained in:
Kovid Goyal 2016-06-26 13:44:50 +05:30
parent f42714c48f
commit 86832d0e15

View File

@ -186,6 +186,8 @@ class LoopTest(BaseTest):
if err.errno == errno.EADDRNOTAVAIL:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0)
s.bind(('localhost', 0))
else:
raise
address = s.getsockname()[0]
if is_travis and isosx:
address = '::1'