summaryrefslogtreecommitdiff
path: root/tests/openssl_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/openssl_test.py')
-rw-r--r--tests/openssl_test.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/openssl_test.py b/tests/openssl_test.py
new file mode 100644
index 0000000..a4498dc
--- /dev/null
+++ b/tests/openssl_test.py
@@ -0,0 +1,17 @@
+import tests
+
+
+def test_import():
+ # https://github.com/eventlet/eventlet/issues/238
+ # Ensure that it's possible to import eventlet.green.OpenSSL.
+ # Most basic test to check Python 3 compatibility.
+ try:
+ import OpenSSL
+ except ImportError:
+ raise tests.SkipTest('need pyopenssl')
+
+ import eventlet.green.OpenSSL.SSL
+ import eventlet.green.OpenSSL.crypto
+ import eventlet.green.OpenSSL.rand
+ import eventlet.green.OpenSSL.tsafe
+ import eventlet.green.OpenSSL.version