diff options
author | Christian Heimes <christian@cheimes.de> | 2013-12-15 16:02:36 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2013-12-15 16:02:36 (GMT) |
commit | a5f0eda91ade2f764c3e06d1eb728a95d40dd524 (patch) | |
tree | dc70b52bc968d44969e3347dd1f5d230d6aa2c25 /Lib/test/test_asyncio/test_events.py | |
parent | 21ebbb27776767fb06d57128c0d002628e86c671 (diff) | |
download | cpython-a5f0eda91ade2f764c3e06d1eb728a95d40dd524.zip cpython-a5f0eda91ade2f764c3e06d1eb728a95d40dd524.tar.gz cpython-a5f0eda91ade2f764c3e06d1eb728a95d40dd524.tar.bz2 |
Skip some tests that require server name indication (SNI)
Diffstat (limited to 'Lib/test/test_asyncio/test_events.py')
-rw-r--r-- | Lib/test/test_asyncio/test_events.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index 0c6b0fe..c6db4d1 100644 --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -10,6 +10,9 @@ try: import ssl except ImportError: ssl = None + HAS_SNI = False +else: + from ssl import HAS_SNI import subprocess import sys import threading @@ -666,6 +669,7 @@ class EventLoopTestsMixin: server.close() @unittest.skipIf(ssl is None, 'No ssl module') + @unittest.skipUnless(HAS_SNI, 'No SNI support in ssl module') def test_create_server_ssl_verify_failed(self): proto = None @@ -694,6 +698,7 @@ class EventLoopTestsMixin: server.close() @unittest.skipIf(ssl is None, 'No ssl module') + @unittest.skipUnless(HAS_SNI, 'No SNI support in ssl module') def test_create_server_ssl_match_failed(self): proto = None @@ -724,6 +729,7 @@ class EventLoopTestsMixin: server.close() @unittest.skipIf(ssl is None, 'No ssl module') + @unittest.skipUnless(HAS_SNI, 'No SNI support in ssl module') def test_create_server_ssl_verified(self): proto = None |