From: Antoine Pitrou Date: Mon, 25 Jun 2012 22:48:59 +0000 (+0200) Subject: Try to fix failure of a Windows buildbot to capture name resolution errors. X-Git-Tag: v2.7.4rc1~745 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ed04f42b9916e89c65820eb236ab347323d983e0;p=thirdparty%2FPython%2Fcpython.git Try to fix failure of a Windows buildbot to capture name resolution errors. --- diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index ae6b44f79526..9b6e5d2a7df2 100644 --- a/Lib/test/test_support.py +++ b/Lib/test/test_support.py @@ -767,6 +767,9 @@ def transient_internet(resource_name, timeout=30.0, errnos=()): ('EAI_FAIL', -4), ('EAI_NONAME', -2), ('EAI_NODATA', -5), + # Windows defines EAI_NODATA as 11001 but idiotic getaddrinfo() + # implementation actually returns WSANO_DATA i.e. 11004. + ('WSANO_DATA', 11004), ] denied = ResourceDenied("Resource '%s' is not available" % resource_name)