]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Make sure test_ssl doesn't reference the ssl module in a
authorBill Janssen <janssen@parc.com>
Tue, 11 Sep 2007 01:09:19 +0000 (01:09 +0000)
committerBill Janssen <janssen@parc.com>
Tue, 11 Sep 2007 01:09:19 +0000 (01:09 +0000)
context where it can't be imported.

Lib/test/test_ssl.py

index 8254c407442fb0c8cd40e64a732a1205364ba121..d064790d6bf3e8e5e0a3ed1568882b92fadcb40c 100644 (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"