mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
catch socket.error errors in badCertTest
This commit is contained in:
parent
bded4d3ba1
commit
ddc5669fd9
1 changed files with 3 additions and 0 deletions
|
@ -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!")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue