mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-132987: Support __index__() in the ssl.SSLContext.options setter (GH-133098)
This commit is contained in:
parent
d6da6803a1
commit
0fb4c38c27
2 changed files with 3 additions and 7 deletions
|
@ -986,7 +986,7 @@ class ContextTests(unittest.TestCase):
|
|||
self.assertEqual(0, ctx.options & ~ssl.OP_NO_SSLv3)
|
||||
|
||||
# invalid options
|
||||
with self.assertRaises(OverflowError):
|
||||
with self.assertRaises(ValueError):
|
||||
ctx.options = -1
|
||||
with self.assertRaises(OverflowError):
|
||||
ctx.options = 2 ** 100
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue