summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorBill Janssen <janssen@parc.com>2008-07-17 18:17:20 (GMT)
committerBill Janssen <janssen@parc.com>2008-07-17 18:17:20 (GMT)
commitddc5669fd90135ba345a9f1a98a11c67a97f833e (patch)
treeab07c2d9efb0168302d489bd8489894ef0c38c06 /Lib/test
parentbded4d3ba1ff03b77bac7eb7057f004a776b5a86 (diff)
downloadcpython-ddc5669fd90135ba345a9f1a98a11c67a97f833e.zip
cpython-ddc5669fd90135ba345a9f1a98a11c67a97f833e.tar.gz
cpython-ddc5669fd90135ba345a9f1a98a11c67a97f833e.tar.bz2
catch socket.error errors in badCertTest
Diffstat (limited to 'Lib/test')
-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 52c392c..9e36e80 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -601,6 +601,9 @@ else:
except ssl.SSLError as x:
if support.verbose:
sys.stdout.write("\nSSLError is %s\n" % x)
+ except socket.error as x:
+ if support.verbose:
+ sys.stdout.write("\nsocket.error is %s\n" % x)
else:
raise support.TestFailed(
"Use of invalid cert should have failed!")