Make sure test_ssl doesn't reference the ssl module in a

context where it can't be imported.
This commit is contained in:
Bill Janssen 2007-09-11 01:09:19 +00:00
parent 119c7a623a
commit e3f1d7d059
1 changed files with 4 additions and 1 deletions

View File

@ -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"