mirror of
https://github.com/python/cpython.git
synced 2025-09-15 13:16:12 +00:00
Skip network tests when getaddrinfo() returns EAI_AGAIN, meaning a temporary
failure in name resolution. Should fix a buildbot failure.
This commit is contained in:
parent
2960308c0c
commit
4a4a0fed07
2 changed files with 4 additions and 0 deletions
|
@ -763,6 +763,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),
|
||||||
]
|
]
|
||||||
|
|
|
@ -92,6 +92,9 @@ Build
|
||||||
Tests
|
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
|
- Avoid failing in test_robotparser when mueblesmoraleda.com is flaky and
|
||||||
an overzealous DNS service (e.g. OpenDNS) redirects to a placeholder
|
an overzealous DNS service (e.g. OpenDNS) redirects to a placeholder
|
||||||
Web site.
|
Web site.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue