Skip to content

Commit

Permalink
bpo-19756: Prevent test failures due to EADDRNOTAVAIL (pythonGH-9446)
Browse files Browse the repository at this point in the history
  • Loading branch information
berkerpeksag authored Sep 20, 2018
1 parent b10a64d commit 8213ead
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Lib/test/support/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 8213ead

Please sign in to comment.