Kaydet (Commit) afd9b2b5 authored tarafından Brett Cannon's avatar Brett Cannon

Manual backport of r54233. This will help prevent spurious Buildbot failures

by HTTPS connections that time out.
üst 1622d82c
...@@ -27,7 +27,13 @@ def test_basic(): ...@@ -27,7 +27,13 @@ def test_basic():
print "didn't raise TypeError" print "didn't raise TypeError"
socket.RAND_add("this is a random string", 75.0) socket.RAND_add("this is a random string", 75.0)
f = urllib.urlopen('https://sf.net') try:
f = urllib.urlopen('https://sf.net')
except IOError, exc:
if exc.errno == errno.ETIMEDOUT:
raise test_support.ResourceDenied('HTTPS connection is timing out')
else:
raise
buf = f.read() buf = f.read()
f.close() f.close()
......
...@@ -356,6 +356,9 @@ Tools/Demos ...@@ -356,6 +356,9 @@ Tools/Demos
Tests Tests
----- -----
- Cause test.test_socket_ssl:test_basic to raise
test.test_support.ResourceDenied when an HTTPS connection times out.
- Remove passwd.adjunct.byname from list of maps - Remove passwd.adjunct.byname from list of maps
for test_nis. for test_nis.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment