mirror of https://github.com/python/cpython
catch socket.error errors in badCertTest
This commit is contained in:
parent
454816d8bd
commit
0c1dbf8792
|
@ -598,6 +598,9 @@ else:
|
|||
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!")
|
||||
|
|
Loading…
Reference in New Issue