[Python-checkins] bpo-41561: skip test_min_max_version_mismatch (GH-22308)

miss-islington webhook-mailer at python.org
Wed Nov 18 07:29:59 EST 2020


https://github.com/python/cpython/commit/73e02ff0d47c37cf2a8f137cfbea0b36d26c48bb
commit: 73e02ff0d47c37cf2a8f137cfbea0b36d26c48bb
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2020-11-18T04:29:34-08:00
summary:

bpo-41561: skip test_min_max_version_mismatch (GH-22308)


skip test_min_max_version_mismatch when TLS 1.0 is not available

Signed-off-by: Christian Heimes <christian at python.org>
(cherry picked from commit ce04e7105bc396c32667a22b928a712ba0778a3f)

Co-authored-by: Christian Heimes <christian at python.org>

files:
A Misc/NEWS.d/next/Tests/2020-09-18-16-14-03.bpo-41561.uPnwrW.rst
M Lib/test/test_ssl.py

diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index 0bc0a8c4522d5..850d174272ec9 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -3826,6 +3826,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 0000000000000..10bce825961c3
--- /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



More information about the Python-checkins mailing list