[Python-checkins] r58101 - python/trunk/Lib/test/test_ssl.py
bill.janssen
python-checkins at python.org
Tue Sep 11 03:09:19 CEST 2007
Author: bill.janssen
Date: Tue Sep 11 03:09:19 2007
New Revision: 58101
Modified:
python/trunk/Lib/test/test_ssl.py
Log:
Make sure test_ssl doesn't reference the ssl module in a
context where it can't be imported.
Modified: python/trunk/Lib/test/test_ssl.py
==============================================================================
--- python/trunk/Lib/test/test_ssl.py (original)
+++ python/trunk/Lib/test/test_ssl.py Tue Sep 11 03:09:19 2007
@@ -340,7 +340,10 @@
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"
More information about the Python-checkins
mailing list