suppress expected TLS 1.1 deprecation warning in test

This commit is contained in:
2026-04-10 15:11:18 -04:00
parent 514061936b
commit 1f3ddc8024
+1
View File
@@ -26,6 +26,7 @@ def test_tls12_works():
assert s.version() == "TLSv1.2"
@pytest.mark.filterwarnings("ignore::DeprecationWarning")
def test_tls11_rejected():
ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
ctx.minimum_version = ssl.TLSVersion.TLSv1_1