diff options
author | Brett Cannon <bcannon@gmail.com> | 2007-03-09 04:57:00 +0000 |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2007-03-09 04:57:00 +0000 |
commit | afd9b2b54d7f75d80ba8d8505e27d0b3746a96b9 (patch) | |
tree | 67b0d89fabd028e19e01f2e6c27394cc9fe179bf | |
parent | 1622d82c08d0978cc1f19e340370030b8f424a37 (diff) | |
download | cpython-git-afd9b2b54d7f75d80ba8d8505e27d0b3746a96b9.tar.gz |
Manual backport of r54233. This will help prevent spurious Buildbot failures
by HTTPS connections that time out.
-rw-r--r-- | Lib/test/test_socket_ssl.py | 8 | ||||
-rw-r--r-- | Misc/NEWS | 3 |
2 files changed, 10 insertions, 1 deletions
diff --git a/Lib/test/test_socket_ssl.py b/Lib/test/test_socket_ssl.py index 3c9c9f03c0..ae6e1daaa1 100644 --- a/Lib/test/test_socket_ssl.py +++ b/Lib/test/test_socket_ssl.py @@ -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() @@ -356,6 +356,9 @@ Tools/Demos 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 for test_nis. |