Tests: check TLS methods availability more carefully.
This commit is contained in:
@@ -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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user