From 5126df4de1c0c28c0d79ab9f4b69ec093bb93d65 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Fri, 18 Sep 2020 16:14:23 +0200 Subject: [PATCH] bpo-41561: skip test_min_max_version_mismatch skip test_min_max_version_mismatch when TLS 1.0 is not available Signed-off-by: Christian Heimes --- Lib/test/test_ssl.py | 1 + Misc/NEWS.d/next/Tests/2020-09-18-16-14-03.bpo-41561.uPnwrW.rst | 1 + 2 files changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Tests/2020-09-18-16-14-03.bpo-41561.uPnwrW.rst diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 26eec969a82e0d..8744e597302e40 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -3854,6 +3854,7 @@ def test_min_max_version_tlsv1_1(self): @requires_minimum_version @requires_tls_version('TLSv1_2') + @requires_tls_version('TLSv1') def test_min_max_version_mismatch(self): client_context, server_context, hostname = testing_context() # client 1.0, server 1.2 (mismatch) diff --git a/Misc/NEWS.d/next/Tests/2020-09-18-16-14-03.bpo-41561.uPnwrW.rst b/Misc/NEWS.d/next/Tests/2020-09-18-16-14-03.bpo-41561.uPnwrW.rst new file mode 100644 index 00000000000000..10bce825961c3c --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2020-09-18-16-14-03.bpo-41561.uPnwrW.rst @@ -0,0 +1 @@ +test_ssl: skip test_min_max_version_mismatch when TLS 1.0 is not available