Kaydet (Commit) c9ba1862 authored tarafından Xiang Zhang's avatar Xiang Zhang Kaydeden (comit) GitHub

bpo-26867: Ubuntu's openssl OP_NO_SSLv3 is forced on by default; fix test. (GH-374)

üst b4f0e980
...@@ -777,7 +777,8 @@ class ContextTests(unittest.TestCase): ...@@ -777,7 +777,8 @@ class ContextTests(unittest.TestCase):
ctx.options = (ctx.options & ~ssl.OP_NO_TLSv1) ctx.options = (ctx.options & ~ssl.OP_NO_TLSv1)
self.assertEqual(default, ctx.options) self.assertEqual(default, ctx.options)
ctx.options = 0 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: else:
with self.assertRaises(ValueError): with self.assertRaises(ValueError):
ctx.options = 0 ctx.options = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment