From: Antoine Pitrou Date: Sat, 8 Jan 2011 10:28:11 +0000 (+0000) Subject: Add EHOSTUNREACH ('No route to host') to the errnos trapped by transient_internet(). X-Git-Tag: v3.2rc1~103 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5d938cb36689321d7a72e4711f66969809dcc8b0;p=thirdparty%2FPython%2Fcpython.git Add EHOSTUNREACH ('No route to host') to the errnos trapped by transient_internet(). --- diff --git a/Lib/test/support.py b/Lib/test/support.py index fb15d64fe410..152cac9bee32 100644 --- a/Lib/test/support.py +++ b/Lib/test/support.py @@ -800,6 +800,7 @@ def transient_internet(resource_name, *, timeout=30.0, errnos=()): default_errnos = [ ('ECONNREFUSED', 111), ('ECONNRESET', 104), + ('EHOSTUNREACH', 113), ('ENETUNREACH', 101), ('ETIMEDOUT', 110), ]