Skip to content

Commit b8e971f

Browse files
committed
Replace make_test_context(), not in this branch
1 parent 5de40fa commit b8e971f

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
@@ -2060,7 +2060,8 @@ def test_check_hostname_requires_server_hostname(self):
20602060
server_hostname=hostname)
20612061

20622062
# Asking for no hostname check remains a way to say so explicitly.
2063-
context = make_test_context()
2063+
context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
2064+
context.check_hostname = False
20642065
self.assertFalse(context.check_hostname)
20652066
context.wrap_bio(ssl.MemoryBIO(), ssl.MemoryBIO())
20662067

0 commit comments

Comments
 (0)