From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 20 Sep 2018 15:36:23 +0000 (-0700) Subject: bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446) X-Git-Tag: v3.6.7rc1~23 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1eabe19c57938dd70b66b97239be337294e15cba;p=thirdparty%2FPython%2Fcpython.git bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446) (cherry picked from commit 8213eaddf3ce8e87564d2949454903a1484748b5) Co-authored-by: Berker Peksag --- diff --git a/Lib/test/support/__init__.py b/Lib/test/support/__init__.py index 9b3ebbadfe44..3f1962fe1cd2 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -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),