From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Thu, 20 Sep 2018 16:06:04 +0000 (-0700) Subject: bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446) X-Git-Tag: v2.7.16rc1~136 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=170ea8ccd4235d28538ab713041502d07ad1cacd;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 6da25971a9ce..c2cc009b9f48 100644 --- a/Lib/test/support/__init__.py +++ b/Lib/test/support/__init__.py @@ -1151,6 +1151,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),