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
commit58d27b7c3070e90436acb19e17da97f1bb3999f2 (patch)
tree03d4699bf94258bc508c2888b32673d5766de885 /tests
parentf2e08a0325a28cdd3af1223312c9982525cd12bb (diff)
downloadtrollius-git-58d27b7c3070e90436acb19e17da97f1bb3999f2.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")