From 075c6a7038c9a4b2d5a9e6279bf406c83ccc8d27 Mon Sep 17 00:00:00 2001 From: Andrei Zeliankou Date: Mon, 10 Jul 2023 15:24:15 +0100 Subject: Tests: check TLS methods availability more carefully. --- test/test_tls_conf_command.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/test_tls_conf_command.py') 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] -- cgit