gh-132987: Support __index__() in the ssl.SSLContext.options setter (GH-133098)

This commit is contained in:
Serhiy Storchaka 2025-04-29 16:28:47 +03:00 committed by GitHub
parent d6da6803a1
commit 0fb4c38c27
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 7 deletions

View file

@ -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