commit | ddc5669fd90135ba345a9f1a98a11c67a97f833e | [log] [tgz] |
---|---|---|
author | Bill Janssen <janssen@parc.com> | Thu Jul 17 18:17:20 2008 +0000 |
committer | Bill Janssen <janssen@parc.com> | Thu Jul 17 18:17:20 2008 +0000 |
tree | ab07c2d9efb0168302d489bd8489894ef0c38c06 | |
parent | bded4d3ba1ff03b77bac7eb7057f004a776b5a86 [diff] |
catch socket.error errors in badCertTest
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 @@ 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!")