Skip to content

Commit

Permalink
bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446)
Browse files Browse the repository at this point in the history
(cherry picked from commit 8213ead)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
  • Loading branch information
miss-islington and berkerpeksag committed Sep 20, 2018
1 parent 1148510 commit 1eabe19
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 @@ -1411,6 +1411,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 1eabe19

Please sign in to comment.