summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2020-11-18 12:10:53 (GMT)
committerGitHub <noreply@github.com>2020-11-18 12:10:53 (GMT)
commitce04e7105bc396c32667a22b928a712ba0778a3f (patch)
tree05112bf008d0d37f8779e9a50f08ab02118e50f8
parentccdcb20cbeb1943f506a422c3fd942651389a187 (diff)
downloadcpython-ce04e7105bc396c32667a22b928a712ba0778a3f.zip
cpython-ce04e7105bc396c32667a22b928a712ba0778a3f.tar.gz
cpython-ce04e7105bc396c32667a22b928a712ba0778a3f.tar.bz2
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@python.org>
-rw-r--r--Lib/test/test_ssl.py1
-rw-r--r--Misc/NEWS.d/next/Tests/2020-09-18-16-14-03.bpo-41561.uPnwrW.rst1
2 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index 26eec96..8744e59 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -3854,6 +3854,7 @@ class ThreadedTests(unittest.TestCase):
@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 0000000..10bce82
--- /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