From: Bill Janssen Date: Thu, 17 Jul 2008 18:17:20 +0000 (+0000) Subject: catch socket.error errors in badCertTest X-Git-Tag: v3.0b2~5 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ddc5669fd90135ba345a9f1a98a11c67a97f833e;p=python catch socket.error errors in badCertTest --- diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 52c392c58c..9e36e8067a 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!")