https://github.com/python/cpython/commit/f24009feeb78f605a3ee177d9e7cfb63d5890ee1 commit: f24009feeb78f605a3ee177d9e7cfb63d5890ee1 branch: 3.14 author: Miss Islington (bot) <[email protected]> committer: gpshead <[email protected]> date: 2026-02-13T12:28:06-08:00 summary:
[3.14] gh-144787: [tests] Allow TLS v1.2 to be minimum version (GH-144790) (#144791) gh-144787: [tests] Allow TLS v1.2 to be minimum version (GH-144790) Allow TLS v1.2 to be minimum version Updates test_min_max_version to allow TLS v1.2 to be minimum version if TLS 1.0 and 1.1 are disabled in OpenSSL. (cherry picked from commit d625f7da33bf8eb57fb7e1a05deae3f68bf4d00f) Co-authored-by: Colin McAllister <[email protected]> files: M Lib/test/test_ssl.py diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 67a63907293e8e..f26df7819cdbd8 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -1085,7 +1085,12 @@ def test_min_max_version(self): ctx.maximum_version = ssl.TLSVersion.MINIMUM_SUPPORTED self.assertIn( ctx.maximum_version, - {ssl.TLSVersion.TLSv1, ssl.TLSVersion.TLSv1_1, ssl.TLSVersion.SSLv3} + { + ssl.TLSVersion.TLSv1, + ssl.TLSVersion.TLSv1_1, + ssl.TLSVersion.TLSv1_2, + ssl.TLSVersion.SSLv3, + } ) ctx.minimum_version = ssl.TLSVersion.MAXIMUM_SUPPORTED _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
