Message268425
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 |
|
Date |
User |
Action |
Args |
2016-06-13 06:40:14 | doko | set | recipients:
+ doko, janssen, pitrou, larry, giampaolo.rodola, ned.deily, alex, SilentGhost, martin.panter, dstufft, xiang.zhang |
2016-06-13 06:40:13 | doko | set | messageid: <1465800013.82.0.840750857721.issue26867@psf.upfronthosting.co.za> |
2016-06-13 06:40:13 | doko | link | issue26867 messages |
2016-06-13 06:40:13 | doko | create | |
|