]> granicus.if.org Git - python/commitdiff
Try to fix test_ssl failures on some buildbots
authorAntoine Pitrou <solipsis@pitrou.net>
Thu, 9 Jan 2014 20:28:48 +0000 (21:28 +0100)
committerAntoine Pitrou <solipsis@pitrou.net>
Thu, 9 Jan 2014 20:28:48 +0000 (21:28 +0100)
Lib/test/test_ssl.py

index 1dd6829faf98217ccc3433f7866f8bd89ae0c560..9fc6027afb44ccf955b1d668a6abf6842cd28b79 100644 (file)
@@ -1440,9 +1440,9 @@ else:
                               ssl.get_protocol_name(server_protocol),
                               certtype))
         client_context = ssl.SSLContext(client_protocol)
-        client_context.options = ssl.OP_ALL | client_options
+        client_context.options |= client_options
         server_context = ssl.SSLContext(server_protocol)
-        server_context.options = ssl.OP_ALL | server_options
+        server_context.options |= server_options
         for ctx in (client_context, server_context):
             ctx.verify_mode = certsreqs
             # NOTE: we must enable "ALL" ciphers, otherwise an SSLv23 client