Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Check that a failed deletion does not change the value
  • Loading branch information
serhiy-storchaka committed Aug 20, 2026
commit 628f25609622c93dfe1820168a4a18d7408f3c1e
4 changes: 3 additions & 1 deletion Lib/test/test_ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -5518,9 +5518,11 @@ def test_keylog_defaults(self):
with self.assertRaises(TypeError):
ctx.keylog_filename = 1

ctx.keylog_filename = os_helper.TESTFN
with self.assertRaisesRegex(AttributeError, 'cannot be deleted'):
del ctx.keylog_filename
self.assertEqual(ctx.keylog_filename, None)
# a failed deletion does not change the value
self.assertEqual(ctx.keylog_filename, os_helper.TESTFN)

def test_keylog_filename(self):
self.addCleanup(os_helper.unlink, os_helper.TESTFN)
Expand Down
Loading