There was an error while loading. Please reload this page.
1 parent 5de40fa commit b8e971fCopy full SHA for b8e971f
1 file changed
Lib/test/test_ssl.py
@@ -2060,7 +2060,8 @@ def test_check_hostname_requires_server_hostname(self):
2060
server_hostname=hostname)
2061
2062
# Asking for no hostname check remains a way to say so explicitly.
2063
- context = make_test_context()
+ context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
2064
+ context.check_hostname = False
2065
self.assertFalse(context.check_hostname)
2066
context.wrap_bio(ssl.MemoryBIO(), ssl.MemoryBIO())
2067
0 commit comments