From: Berker Peksag Date: Thu, 20 Sep 2018 15:08:57 +0000 (+0300) Subject: bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446) X-Git-Tag: v3.8.0a1~928 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8213eaddf3ce8e87564d2949454903a1484748b5;p=python bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446) --- diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index 19701cf388..ed0d46de64 100644 --- a/Lib/test/support/__init__.py +++ b/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),