summaryrefslogtreecommitdiffstats
path: root/Lib/test/support.py
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2011-12-10 12:16:44 (GMT)
committerCharles-François Natali <neologix@free.fr>2011-12-10 12:16:44 (GMT)
commit13859bfedc77a54adfc7bab75573fd330438587a (patch)
tree2cf7c0becfa058bc829d4c52c157d85e73102428 /Lib/test/support.py
parent0c6cbbd6324b40e6cd532d02c2dffdf4daca58db (diff)
downloadcpython-13859bfedc77a54adfc7bab75573fd330438587a.zip
cpython-13859bfedc77a54adfc7bab75573fd330438587a.tar.gz
cpython-13859bfedc77a54adfc7bab75573fd330438587a.tar.bz2
Issue #13453: Catch EAI_FAIL in support.transient_internet.
Diffstat (limited to 'Lib/test/support.py')
-rw-r--r--Lib/test/support.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py
index ab71d47..51375d5 100644
--- a/Lib/test/support.py
+++ b/Lib/test/support.py
@@ -877,6 +877,7 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()):
]
default_gai_errnos = [
('EAI_AGAIN', -3),
+ ('EAI_FAIL', -4),
('EAI_NONAME', -2),
('EAI_NODATA', -5),
# Encountered when trying to resolve IPv6-only hostnames