mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
catch socket.error errors in badCertTest
This commit is contained in:
parent
454816d8bd
commit
0c1dbf8792
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue