commit | 0c1dbf8792cd1d4a8f97070852a16f4afcd7f466 | [log] [tgz] |
---|---|---|
author | Bill Janssen <janssen@parc.com> | Thu Jul 17 18:01:57 2008 +0000 |
committer | Bill Janssen <janssen@parc.com> | Thu Jul 17 18:01:57 2008 +0000 |
tree | 1071c38749f12243ef74d0e364958349631a9b76 | |
parent | 454816d8bdd6ec9bb986aa31760518e622dc1ea7 [diff] [blame] |
catch socket.error errors in badCertTest
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 @@ 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!")