Author doko
Recipients SilentGhost, alex, doko, dstufft, giampaolo.rodola, janssen, larry, martin.panter, ned.deily, pitrou, xiang.zhang
Date 2016-06-13.06:40:13
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1465800013.82.0.840750857721.issue26867@psf.upfronthosting.co.za>
In-reply-to
Content
Description: properly handle Ubuntu's openssl having OP_NO_SSLv3 forced on by default
Author: Marc Deslauriers <marc.deslauriers@canonical.com>
Forwarded: yes, http://bugs.python.org/issue25724

Index: b/Lib/test/test_ssl.py
===================================================================
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -821,7 +821,8 @@ class ContextTests(unittest.TestCase):
             self.assertEqual(ssl.OP_ALL | ssl.OP_NO_TLSv1 | ssl.OP_NO_SSLv3,
                              ctx.options)
             ctx.options = 0
-            self.assertEqual(0, ctx.options)
+            # Ubuntu has OP_NO_SSLv3 forced on by default
+            self.assertEqual(0, ctx.options & ~ssl.OP_NO_SSLv3)
         else:
             with self.assertRaises(ValueError):
                 ctx.options = 0
History
Date User Action Args
2016-06-13 06:40:14dokosetrecipients: + doko, janssen, pitrou, larry, giampaolo.rodola, ned.deily, alex, SilentGhost, martin.panter, dstufft, xiang.zhang
2016-06-13 06:40:13dokosetmessageid: <1465800013.82.0.840750857721.issue26867@psf.upfronthosting.co.za>
2016-06-13 06:40:13dokolinkissue26867 messages
2016-06-13 06:40:13dokocreate