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/api_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/api_test.py')
| -rw-r--r-- | tests/api_test.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/api_test.py b/tests/api_test.py index 3a9f337..5aa0e4a 100644 --- a/tests/api_test.py +++ b/tests/api_test.py @@ -10,6 +10,9 @@ from eventlet import api warnings.simplefilter('default', DeprecationWarning) from eventlet import greenio, util, hubs, greenthread, spawn +from tests import skip_if_no_ssl + + def check_hub(): # Clear through the descriptor queue api.sleep(0) @@ -60,6 +63,7 @@ class TestApi(TestCase): check_hub() + @skip_if_no_ssl def test_connect_ssl(self): def accept_once(listenfd): try: |
