Skip to content
Closed
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
Replace make_test_context(), not in this branch
  • Loading branch information
hugovk committed Sep 30, 2026
commit b8e971fc1615374eaee3d41b034525fcb9039569
3 changes: 2 additions & 1 deletion Lib/test/test_ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -2060,7 +2060,8 @@ def test_check_hostname_requires_server_hostname(self):
server_hostname=hostname)

# Asking for no hostname check remains a way to say so explicitly.
context = make_test_context()
context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
context.check_hostname = False
self.assertFalse(context.check_hostname)
context.wrap_bio(ssl.MemoryBIO(), ssl.MemoryBIO())

Expand Down
Loading