Browse Source
bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446)
pull/9451/head
Berker Peksag
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
0 deletions
-
Lib/test/support/__init__.py
|
|
|
@ -1426,6 +1426,9 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()): |
|
|
|
('EHOSTUNREACH', 113), |
|
|
|
('ENETUNREACH', 101), |
|
|
|
('ETIMEDOUT', 110), |
|
|
|
# socket.create_connection() fails randomly with |
|
|
|
# EADDRNOTAVAIL on Travis CI. |
|
|
|
('EADDRNOTAVAIL', 99), |
|
|
|
] |
|
|
|
default_gai_errnos = [ |
|
|
|
('EAI_AGAIN', -3), |
|
|
|
|