Commit af19b0c1 authored by Denis Bilenko's avatar Denis Bilenko

test_ssl.py: properly raise ImportError if no ssl available

parent 10f08b35
......@@ -42,11 +42,7 @@ except NameError:
memoryview = None
# Optionally test SSL support, if we have it in the tested platform
skip_expected = False
try:
from gevent import ssl
except ImportError:
skip_expected = True
from gevent import ssl
HOST = 'localhost'
CERTFILE = os.path.join(os.path.dirname(__file__) or os.curdir, "keycert.pem")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment