Kaydet (Commit) 9163c473 authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary

failure in name resolution.

Should fix a buildbot failure.
üst 3aba4989
...@@ -867,6 +867,7 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()): ...@@ -867,6 +867,7 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()):
('ETIMEDOUT', 110), ('ETIMEDOUT', 110),
] ]
default_gai_errnos = [ default_gai_errnos = [
('EAI_AGAIN', -3),
('EAI_NONAME', -2), ('EAI_NONAME', -2),
('EAI_NODATA', -5), ('EAI_NODATA', -5),
# Encountered when trying to resolve IPv6-only hostnames # Encountered when trying to resolve IPv6-only hostnames
......
...@@ -19,6 +19,9 @@ Library ...@@ -19,6 +19,9 @@ Library
Tests Tests
----- -----
- Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
failure in name resolution.
- Avoid failing in test_urllibnet.test_bad_address when some overzealous - Avoid failing in test_urllibnet.test_bad_address when some overzealous
DNS service (e.g. OpenDNS) resolves a non-existent domain name. The test DNS service (e.g. OpenDNS) resolves a non-existent domain name. The test
is now skipped instead. is now skipped instead.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment