suppress expected TLS 1.1 deprecation warning in test
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user