From ddc5669fd90135ba345a9f1a98a11c67a97f833e Mon Sep 17 00:00:00 2001 From: Bill Janssen Date: Thu, 17 Jul 2008 18:17:20 +0000 Subject: catch socket.error errors in badCertTest --- Lib/test/test_ssl.py | 3 +++ 1 file changed, 3 insertions(+) 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!") -- cgit v0.12