summaryrefslogtreecommitdiffstats
path: root/Lib/test/support
diff options
context:
space:
mode:
authorCharles-François Natali <cf.natali@gmail.com>2013-08-31 12:40:49 (GMT)
committerCharles-François Natali <cf.natali@gmail.com>2013-08-31 12:40:49 (GMT)
commitfcfb324e817c4362fb83d905d65968cf94e0d68a (patch)
tree33ff1170dab2d049a220aa308d24abd203fe2a31 /Lib/test/support
parent79a53ea7d7d66f515b6bd4a38b1adbe8961a69f2 (diff)
downloadcpython-fcfb324e817c4362fb83d905d65968cf94e0d68a.zip
cpython-fcfb324e817c4362fb83d905d65968cf94e0d68a.tar.gz
cpython-fcfb324e817c4362fb83d905d65968cf94e0d68a.tar.bz2
Use the recent support.HOSTv6 addition.
Diffstat (limited to 'Lib/test/support')
-rw-r--r--Lib/test/support/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py
index 39089cd..d496bd6 100644
--- a/Lib/test/support/__init__.py
+++ b/Lib/test/support/__init__.py
@@ -587,7 +587,7 @@ def _is_ipv6_enabled():
sock = None
try:
sock = socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
- sock.bind(('::1', 0))
+ sock.bind((HOSTv6, 0))
return True
except OSError:
pass