projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c14bae4
)
Try to fix failure of a Windows buildbot to capture name resolution errors.
author
Antoine Pitrou
<solipsis@pitrou.net>
Mon, 25 Jun 2012 22:48:59 +0000
(
00:48
+0200)
committer
Antoine Pitrou
<solipsis@pitrou.net>
Mon, 25 Jun 2012 22:48:59 +0000
(
00:48
+0200)
Lib/test/test_support.py
patch
|
blob
|
history
diff --git
a/Lib/test/test_support.py
b/Lib/test/test_support.py
index ae6b44f79526b66e3e35d3871813357865d11108..9b6e5d2a7df20126eabffbfe222e23db624dc4c6 100644
(file)
--- 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)