There was an error while loading. Please reload this page.
1 parent 9a9bff5 commit 1712d5bCopy full SHA for 1712d5b
1 file changed
Lib/test/test_ssl.py
@@ -1838,7 +1838,8 @@ def test_check_hostname_requires_server_hostname(self):
1838
server_hostname=hostname)
1839
1840
# Asking for no hostname check remains a way to say so explicitly.
1841
- context = make_test_context()
+ context = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
1842
+ context.check_hostname = False
1843
self.assertFalse(context.check_hostname)
1844
context.wrap_bio(ssl.MemoryBIO(), ssl.MemoryBIO())
1845
0 commit comments