https://github.com/python/cpython/commit/756676fc18e7825c15b1a2c9bbf6a3adf033a5e2 commit: 756676fc18e7825c15b1a2c9bbf6a3adf033a5e2 branch: 3.12 author: Miss Islington (bot) <[email protected]> committer: picnixz <[email protected]> date: 2025-04-01T08:16:34Z summary:
[3.12] gh-131736: only apply `security_level` workaround in `test_ssl` for security levels greater than 1 (GH-131739) (#131966) gh-131736: only apply `security_level` workaround in `test_ssl` for security levels greater than 1 (GH-131739) (cherry picked from commit 3b3720f1a26ab34377542b48eb6a6565f78ff892) Co-authored-by: Will Childs-Klein <[email protected]> files: M Lib/test/test_ssl.py diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 75b7e5ca506aa3..b13e37d0cd18ee 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -173,7 +173,8 @@ def seclevel_workaround(*ctxs): for ctx in ctxs: if ( hasattr(ctx, "minimum_version") and - ctx.minimum_version <= ssl.TLSVersion.TLSv1_1 + ctx.minimum_version <= ssl.TLSVersion.TLSv1_1 and + ctx.security_level > 1 ): ctx.set_ciphers("@SECLEVEL=1:ALL") else: _______________________________________________ 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]
