From 1f16d95debde61d37dccdcd025ab703df5c5c2e3 Mon Sep 17 00:00:00 2001 From: Andre Kutianski Date: Fri, 9 Oct 2026 01:05:10 -0300 Subject: [PATCH] test: servidor TLS local dos testes exige TLS 1.2+ (alerta CodeQL py/insecure-protocol) --- tests/unit/test_transport.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit/test_transport.py b/tests/unit/test_transport.py index d75833a..804bd89 100644 --- a/tests/unit/test_transport.py +++ b/tests/unit/test_transport.py @@ -243,6 +243,7 @@ def self_signed(tmp_path_factory: pytest.TempPathFactory) -> tuple[Path, Path]: def _server_tls(cert: Path, key: Path) -> ssl.SSLContext: ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER) + ctx.minimum_version = ssl.TLSVersion.TLSv1_2 # mesmo piso do cliente; nada de TLS 1.0/1.1 ctx.load_cert_chain(cert, key) return ctx