diff options
| author | Floris Bruynooghe <flub@devork.be> | 2012-09-05 00:49:20 +0100 |
|---|---|---|
| committer | Floris Bruynooghe <flub@devork.be> | 2012-09-05 00:49:20 +0100 |
| commit | 2fc5857c8a09d8f488eeba8b74c1af7680e9bfcd (patch) | |
| tree | c25b585dd374b2ed840e161304cb989ea0831df7 /tests/websocket_test.py | |
| parent | 3003d941d7d969a8a9d92d0829d2e4bbbf59b7fb (diff) | |
| download | eventlet-2fc5857c8a09d8f488eeba8b74c1af7680e9bfcd.tar.gz | |
Skip SSL tests if SSL is not available
This is particularly useful to not require the external OpenSSL module
in order to run the tests on python2.5.
Diffstat (limited to 'tests/websocket_test.py')
| -rw-r--r-- | tests/websocket_test.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/websocket_test.py b/tests/websocket_test.py index f8bb45f..791ed99 100644 --- a/tests/websocket_test.py +++ b/tests/websocket_test.py @@ -10,6 +10,7 @@ from eventlet import event from eventlet import greenio from tests import mock, LimitedTestCase, certificate_file, private_key_file +from tests import skip_if_no_ssl from tests.wsgi_test import _TestBase @@ -517,6 +518,7 @@ class TestWebSocketSSL(_TestBase): def set_site(self): self.site = wsapp + @skip_if_no_ssl def test_ssl_sending_messages(self): s = eventlet.wrap_ssl(eventlet.listen(('localhost', 0)), certfile=certificate_file, |
