https://github.com/python/cpython/commit/795f436fc50f99ad4b2b14df7c724702fb608c6d commit: 795f436fc50f99ad4b2b14df7c724702fb608c6d branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: gpshead <[email protected]> date: 2026-02-13T12:28:14-08:00 summary:
[3.13] gh-144787: [tests] Allow TLS v1.2 to be minimum version (GH-144790) (#144792) 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 61c57303440a3d..a90ead5b3a39cf 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -1112,7 +1112,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]
