From 7243b574e5fc6f9ae68dc5ebd8252047b8e78e3b Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sun, 23 Nov 2014 17:04:34 -0600 Subject: don't require OpenSSL SNI to pass hostname to ssl functions (#22921) Patch by Donald Stufft. --- Lib/test/test_imaplib.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Lib/test/test_imaplib.py') diff --git a/Lib/test/test_imaplib.py b/Lib/test/test_imaplib.py index a6d83d42f3..b34e652347 100644 --- a/Lib/test/test_imaplib.py +++ b/Lib/test/test_imaplib.py @@ -18,9 +18,6 @@ try: import ssl except ImportError: ssl = None - HAS_SNI = False -else: - from ssl import HAS_SNI CERTFILE = None CAFILE = None @@ -352,7 +349,6 @@ class ThreadedNetworkedTestsSSL(BaseThreadedNetworkedTests): imap_class = IMAP4_SSL @reap_threads - @unittest.skipUnless(HAS_SNI, 'No SNI support in ssl module') def test_ssl_verified(self): ssl_context = ssl.SSLContext(ssl.PROTOCOL_SSLv23) ssl_context.verify_mode = ssl.CERT_REQUIRED -- cgit v1.2.1