[Python-checkins] cpython (2.7): Try to fix failure of a Windows buildbot to capture name resolution errors.

antoine.pitrou python-checkins at python.org
Tue Jun 26 00:52:38 CEST 2012


http://hg.python.org/cpython/rev/f41c08d5c9e8
changeset:   77786:f41c08d5c9e8
branch:      2.7
parent:      77783:99f0c0207faa
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Tue Jun 26 00:48:59 2012 +0200
summary:
  Try to fix failure of a Windows buildbot to capture name resolution errors.

files:
  Lib/test/test_support.py |  3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_support.py b/Lib/test/test_support.py
--- a/Lib/test/test_support.py
+++ b/Lib/test/test_support.py
@@ -767,6 +767,9 @@
         ('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)

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list