mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Issue #26867: Ubuntu's openssl OP_NO_SSLv3 is forced on by default; fix test.
This commit is contained in:
parent
6e9a96be9e
commit
f7c562439b
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue