Skip to content

Commit 1712d5b

Browse files
committed
Replace make_test_context(), not in this branch
1 parent 9a9bff5 commit 1712d5b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Lib/test/test_ssl.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1838,7 +1838,8 @@ def test_check_hostname_requires_server_hostname(self):
18381838
server_hostname=hostname)
18391839

18401840
# Asking for no hostname check remains a way to say so explicitly.
1841-
context = make_test_context()
1841+
context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
1842+
context.check_hostname = False
18421843
self.assertFalse(context.check_hostname)
18431844
context.wrap_bio(ssl.MemoryBIO(), ssl.MemoryBIO())
18441845

0 commit comments

Comments
 (0)