test: Fix IPv6 check on BSD systems
This commit is contained in:
1 file changed
+1
-1
@@ -151,7 +151,7 @@ def test_ipv6_local():
|
|||||||
have_ipv6 = True
|
have_ipv6 = True
|
||||||
try:
|
try:
|
||||||
s = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM)
|
s = socket.socket(socket.AF_INET6, socket.SOCK_DGRAM)
|
||||||
s.connect(('::1', 0))
|
s.connect(('::1', 1))
|
||||||
except socket.error:
|
except socket.error:
|
||||||
have_ipv6 = False
|
have_ipv6 = False
|
||||||
return have_ipv6
|
return have_ipv6
|
||||||
Reference in new issue
Block a user