Skip to content

Commit 1eabe19

Browse files
bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446)
(cherry picked from commit 8213ead) Co-authored-by: Berker Peksag <[email protected]>
1 parent 1148510 commit 1eabe19

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/support/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1411,6 +1411,9 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()):
14111411
('EHOSTUNREACH', 113),
14121412
('ENETUNREACH', 101),
14131413
('ETIMEDOUT', 110),
1414+
# socket.create_connection() fails randomly with
1415+
# EADDRNOTAVAIL on Travis CI.
1416+
('EADDRNOTAVAIL', 99),
14141417
]
14151418
default_gai_errnos = [
14161419
('EAI_AGAIN', -3),

0 commit comments

Comments
 (0)