summaryrefslogtreecommitdiffstats
path: root/Lib/test/support.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-07-09 00:31:24 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-07-09 00:31:24 (GMT)
commit4875c4653881b1cb7095b6cfd46808cd130b5c88 (patch)
tree960bae7a12112425751b4e32b72eef88ce304b85 /Lib/test/support.py
parent95531ea2f1c69eed6b8a5d964f0fd47c124ccca8 (diff)
downloadcpython-4875c4653881b1cb7095b6cfd46808cd130b5c88.zip
cpython-4875c4653881b1cb7095b6cfd46808cd130b5c88.tar.gz
cpython-4875c4653881b1cb7095b6cfd46808cd130b5c88.tar.bz2
Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
failure in name resolution. Should fix a buildbot failure.
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 83ea6c1..e2d7ae0 100644
--- a/Lib/test/support.py
+++ b/Lib/test/support.py
@@ -867,6 +867,7 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()):
('ETIMEDOUT', 110),
]
default_gai_errnos = [
+ ('EAI_AGAIN', -3),
('EAI_NONAME', -2),
('EAI_NODATA', -5),
# Encountered when trying to resolve IPv6-only hostnames