From ed04f42b9916e89c65820eb236ab347323d983e0 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Tue, 26 Jun 2012 00:48:59 +0200 Subject: [PATCH] Try to fix failure of a Windows buildbot to capture name resolution errors. --- Lib/test/test_support.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py index ae6b44f7952..9b6e5d2a7df 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)