summaryrefslogtreecommitdiffhomepage
path: root/test/conftest.py
diff options
context:
space:
mode:
authorAndrei Zeliankou <zelenkov@nginx.com>2021-02-23 22:25:47 +0000
committerAndrei Zeliankou <zelenkov@nginx.com>2021-02-23 22:25:47 +0000
commitd0591f07d7681a66197ee9ea4104177f13ccf8df (patch)
treef386d940050ff9b18080dd06e415f8160dd6fa4c /test/conftest.py
parentaf3b6ef37d0d8d4d9e27d77a750419d96e0119bc (diff)
downloadunit-d0591f07d7681a66197ee9ea4104177f13ccf8df.tar.gz
unit-d0591f07d7681a66197ee9ea4104177f13ccf8df.tar.bz2
Tests: fixed tests to work without openssl support.
Diffstat (limited to 'test/conftest.py')
-rw-r--r--test/conftest.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/conftest.py b/test/conftest.py
index e75f9208..20ac6e81 100644
--- a/test/conftest.py
+++ b/test/conftest.py
@@ -470,6 +470,9 @@ def _clear_conf(sock, log=None):
check_success(resp)
+ if 'openssl' not in option.available['modules']:
+ return
+
try:
certs = json.loads(http.get(
url='/certificates',