diff options
author | Andrei Zeliankou <zelenkov@nginx.com> | 2023-07-10 15:24:15 +0100 |
---|---|---|
committer | Andrei Zeliankou <zelenkov@nginx.com> | 2023-07-10 15:24:15 +0100 |
commit | 075c6a7038c9a4b2d5a9e6279bf406c83ccc8d27 (patch) | |
tree | 906d97f7ef66f2aacb030015e2134c9e7182c9fe /test/test_tls_conf_command.py | |
parent | 3c7743344b368ebcc3c1be54e68019923fe45b49 (diff) | |
download | unit-075c6a7038c9a4b2d5a9e6279bf406c83ccc8d27.tar.gz unit-075c6a7038c9a4b2d5a9e6279bf406c83ccc8d27.tar.bz2 |
Tests: check TLS methods availability more carefully.
Diffstat (limited to 'test/test_tls_conf_command.py')
-rw-r--r-- | test/test_tls_conf_command.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/test_tls_conf_command.py b/test/test_tls_conf_command.py index d48efe64..49df7bf3 100644 --- a/test/test_tls_conf_command.py +++ b/test/test_tls_conf_command.py @@ -40,6 +40,10 @@ def test_tls_conf_command(): (_, sock) = client.get_ssl(start=True) shared_ciphers = sock.shared_ciphers() + + if not shared_ciphers: + pytest.skip('no shared ciphers') + protocols = list(set(c[1] for c in shared_ciphers)) protocol = sock.cipher()[1] |