mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Merge from 3.5.
This commit is contained in:
commit
c2f2ef8faa
2 changed files with 5 additions and 1 deletions
|
@ -844,7 +844,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