summaryrefslogtreecommitdiffhomepage
path: root/test/test_tls_session.py
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2021-11-02 18:39:03 +0000
committerAndrei Zeliankou <zelenkov@nginx.com>2021-11-02 18:39:03 +0000
commit2359c4056c38bfb10569ec03da895c8e6e9dfbd2 (patch)
tree2f39c5d3179255a5325c055c3646edecc3bfa7ca /test/test_tls_session.py
parentc27d0fe7bd9b56ee20f01124d72800ded7ccca9c (diff)
downloadunit-2359c4056c38bfb10569ec03da895c8e6e9dfbd2.tar.gz
unit-2359c4056c38bfb10569ec03da895c8e6e9dfbd2.tar.bz2
Tests: added pyOpenSSL module check were necessary.
Diffstat (limited to 'test/test_tls_session.py')
-rw-r--r--test/test_tls_session.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_tls_session.py b/test/test_tls_session.py
index 0c5f0248..f173913b 100644
--- a/test/test_tls_session.py
+++ b/test/test_tls_session.py
@@ -2,6 +2,8 @@ import socket
import time
import pytest
+
+pytest.importorskip('OpenSSL.SSL')
from OpenSSL.SSL import (
TLSv1_2_METHOD,
SESS_CACHE_CLIENT,