summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBill Janssen <janssen@parc.com>2008-07-17 18:01:57 (GMT)
committerBill Janssen <janssen@parc.com>2008-07-17 18:01:57 (GMT)
commit0c1dbf8792cd1d4a8f97070852a16f4afcd7f466 (patch)
tree1071c38749f12243ef74d0e364958349631a9b76 /Lib
parent454816d8bdd6ec9bb986aa31760518e622dc1ea7 (diff)
downloadcpython-0c1dbf8792cd1d4a8f97070852a16f4afcd7f466.zip
cpython-0c1dbf8792cd1d4a8f97070852a16f4afcd7f466.tar.gz
cpython-0c1dbf8792cd1d4a8f97070852a16f4afcd7f466.tar.bz2
catch socket.error errors in badCertTest
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_ssl.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index b05b17e..79dad64 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -598,6 +598,9 @@ else:
except ssl.SSLError, x:
if test_support.verbose:
sys.stdout.write("\nSSLError is %s\n" % x[1])
+ except socket.error, x:
+ if test_support.verbose:
+ sys.stdout.write("\nsocket.error is %s\n" % x[1])
else:
raise test_support.TestFailed(
"Use of invalid cert should have failed!")