mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
f42714c48f
commit
86832d0e15
@ -186,6 +186,8 @@ class LoopTest(BaseTest):
|
|||||||
if err.errno == errno.EADDRNOTAVAIL:
|
if err.errno == errno.EADDRNOTAVAIL:
|
||||||
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0)
|
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM, 0)
|
||||||
s.bind(('localhost', 0))
|
s.bind(('localhost', 0))
|
||||||
|
else:
|
||||||
|
raise
|
||||||
address = s.getsockname()[0]
|
address = s.getsockname()[0]
|
||||||
if is_travis and isosx:
|
if is_travis and isosx:
|
||||||
address = '::1'
|
address = '::1'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user