summaryrefslogtreecommitdiffhomepage
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
parentc27d0fe7bd9b56ee20f01124d72800ded7ccca9c (diff)
downloadunit-2359c4056c38bfb10569ec03da895c8e6e9dfbd2.tar.gz
unit-2359c4056c38bfb10569ec03da895c8e6e9dfbd2.tar.bz2
Tests: added pyOpenSSL module check were necessary.
-rw-r--r--test/test_tls_session.py2
-rw-r--r--test/test_tls_tickets.py2
2 files changed, 4 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,
diff --git a/test/test_tls_tickets.py b/test/test_tls_tickets.py
index 7214f77f..6899eaa1 100644
--- a/test/test_tls_tickets.py
+++ b/test/test_tls_tickets.py
@@ -1,6 +1,8 @@
import socket
import pytest
+
+pytest.importorskip('OpenSSL.SSL')
from OpenSSL.SSL import (
TLSv1_2_METHOD,
Context,