https://github.com/python/cpython/commit/d625f7da33bf8eb57fb7e1a05deae3f68bf4d00f
commit: d625f7da33bf8eb57fb7e1a05deae3f68bf4d00f
branch: main
author: Colin McAllister <[email protected]>
committer: gpshead <[email protected]>
date: 2026-02-13T17:17:53Z
summary:
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.
files:
M Lib/test/test_ssl.py
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py
index 6023c89bca03f9..7e9ba735b3ce66 100644
--- a/Lib/test/test_ssl.py
+++ b/Lib/test/test_ssl.py
@@ -1156,7 +1156,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]