Commit ddc5669f authored by Bill Janssen's avatar Bill Janssen

catch socket.error errors in badCertTest

parent bded4d3b
...@@ -601,6 +601,9 @@ else: ...@@ -601,6 +601,9 @@ else:
except ssl.SSLError as x: except ssl.SSLError as x:
if support.verbose: if support.verbose:
sys.stdout.write("\nSSLError is %s\n" % x) 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: else:
raise support.TestFailed( raise 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