mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Manual backport of r54233. This will help prevent spurious Buildbot failures
by HTTPS connections that time out.
This commit is contained in:
parent
1622d82c08
commit
afd9b2b54d
2 changed files with 10 additions and 1 deletions
|
@ -27,7 +27,13 @@ def test_basic():
|
|||
print "didn't raise TypeError"
|
||||
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()
|
||||
f.close()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue