Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
failure in name resolution.
Should fix a buildbot failure.
diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
index de56e9e..4cdfe7f 100644
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -763,6 +763,7 @@
('ETIMEDOUT', 110),
]
default_gai_errnos = [
+ ('EAI_AGAIN', -3),
('EAI_NONAME', -2),
('EAI_NODATA', -5),
]
diff --git a/Misc/NEWS b/Misc/NEWS
index 9607a4d..97a4acb 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -92,6 +92,9 @@
Tests
-----
+- Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
+ failure in name resolution.
+
- Avoid failing in test_robotparser when mueblesmoraleda.com is flaky and
an overzealous DNS service (e.g. OpenDNS) redirects to a placeholder
Web site.