Kaydet (Commit) 0c1dbf87 authored tarafından Bill Janssen's avatar Bill Janssen

catch socket.error errors in badCertTest

üst 454816d8
...@@ -598,6 +598,9 @@ else: ...@@ -598,6 +598,9 @@ else:
except ssl.SSLError, x: except ssl.SSLError, x:
if test_support.verbose: if test_support.verbose:
sys.stdout.write("\nSSLError is %s\n" % x[1]) 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: else:
raise test_support.TestFailed( raise test_support.TestFailed(
"Use of invalid cert should have failed!") "Use of invalid cert should have failed!")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment