]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 9 Jul 2011 00:31:24 +0000 (02:31 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 9 Jul 2011 00:31:24 +0000 (02:31 +0200)
failure in name resolution.

Should fix a buildbot failure.

Lib/test/support.py
Misc/NEWS

index 83ea6c1bf0fc7c7951fff2653939aa7fdc75f0c3..e2d7ae05a5845983d372473d179beebdee690e8d 100644 (file)
@@ -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
index 53b75624918d51c2f5107a65f336466df324386f..1440035f32f5a0c2f53952fa45bacea737abf9a4 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -47,6 +47,9 @@ C-API
 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.