mirror of https://github.com/python/cpython
Make sure test_ssl doesn't reference the ssl module in a
context where it can't be imported.
This commit is contained in:
parent
119c7a623a
commit
e3f1d7d059
|
@ -340,7 +340,10 @@ else:
|
|||
def tryProtocolCombo (server_protocol,
|
||||
client_protocol,
|
||||
expectedToWork,
|
||||
certsreqs=ssl.CERT_NONE):
|
||||
certsreqs=None):
|
||||
|
||||
if certsreqs == None:
|
||||
certsreqs = ssl.CERT_NONE
|
||||
|
||||
if certsreqs == ssl.CERT_NONE:
|
||||
certtype = "CERT_NONE"
|
||||
|
|
Loading…
Reference in New Issue