summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-01-14 23:43:03 +0100
committerVictor Stinner <victor.stinner@gmail.com>2015-01-14 23:43:03 +0100
commit849b259271b489e1d37205b65642722b40c2331e (patch)
tree03d4699bf94258bc508c2888b32673d5766de885 /tests
parent03aa11c221465f30dc9386f9e172ef3b2c9b0586 (diff)
downloadtrollius-849b259271b489e1d37205b65642722b40c2331e.tar.gz
Fix test_events on Python older than 3.5
Skip SSL tests on the ProactorEventLoop if ssl.MemoryIO is missing
Diffstat (limited to 'tests')
-rw-r--r--tests/test_events.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/test_events.py b/tests/test_events.py
index d40c8e4..a38c90e 100644
--- a/tests/test_events.py
+++ b/tests/test_events.py
@@ -25,6 +25,7 @@ import weakref
import asyncio
from asyncio import proactor_events
from asyncio import selector_events
+from asyncio import sslproto
from asyncio import test_utils
try:
from test import support
@@ -1789,6 +1790,22 @@ if sys.platform == 'win32':
def create_event_loop(self):
return asyncio.ProactorEventLoop()
+ if not sslproto._is_sslproto_available():
+ def test_create_ssl_connection(self):
+ raise unittest.SkipTest("need python 3.5 (ssl.MemoryBIO)")
+
+ def test_create_server_ssl(self):
+ raise unittest.SkipTest("need python 3.5 (ssl.MemoryBIO)")
+
+ def test_create_server_ssl_verify_failed(self):
+ raise unittest.SkipTest("need python 3.5 (ssl.MemoryBIO)")
+
+ def test_create_server_ssl_match_failed(self):
+ raise unittest.SkipTest("need python 3.5 (ssl.MemoryBIO)")
+
+ def test_create_server_ssl_verified(self):
+ raise unittest.SkipTest("need python 3.5 (ssl.MemoryBIO)")
+
def test_legacy_create_ssl_connection(self):
raise unittest.SkipTest("IocpEventLoop incompatible with legacy SSL")