mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
merge 3.4 (#22921)
This commit is contained in:
commit
f9284ae8ed
16 changed files with 24 additions and 79 deletions
|
@ -15,9 +15,6 @@ try:
|
|||
import ssl
|
||||
except ImportError:
|
||||
ssl = None
|
||||
HAS_SNI = False
|
||||
else:
|
||||
from ssl import HAS_SNI
|
||||
|
||||
from unittest import TestCase, skipUnless
|
||||
from test import support
|
||||
|
@ -927,7 +924,6 @@ class TestTLS_FTPClass(TestCase):
|
|||
self.client.ccc()
|
||||
self.assertRaises(ValueError, self.client.sock.unwrap)
|
||||
|
||||
@skipUnless(HAS_SNI, 'No SNI support in ssl module')
|
||||
def test_check_hostname(self):
|
||||
self.client.quit()
|
||||
ctx = ssl.SSLContext(ssl.PROTOCOL_TLSv1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue