From 786d299b1ff090801ae8343d761ddf153fc5a521 Mon Sep 17 00:00:00 2001 From: WillChilds-Klein <willck93@gmail.com> Date: Tue, 25 Mar 2025 17:39:02 +0000 Subject: [PATCH 1/3] Only do seclevel workaround if greater than 1 --- Lib/test/test_ssl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 9863f3ffe97656..77f1f64a971e85 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -155,7 +155,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: From ca6c156264b577403c26d67e910f73302e1dbcde Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Tue, 25 Mar 2025 20:54:15 +0000 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Tests/2025-03-25-20-54-12.gh-issue-131736.firXbY.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Tests/2025-03-25-20-54-12.gh-issue-131736.firXbY.rst diff --git a/Misc/NEWS.d/next/Tests/2025-03-25-20-54-12.gh-issue-131736.firXbY.rst b/Misc/NEWS.d/next/Tests/2025-03-25-20-54-12.gh-issue-131736.firXbY.rst new file mode 100644 index 00000000000000..9b4d13176bcb82 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2025-03-25-20-54-12.gh-issue-131736.firXbY.rst @@ -0,0 +1 @@ +Only do seclevel workaround if seclevel greater than 1. From 1968316951ed8ab217c2328ccb61fe6ad18f5510 Mon Sep 17 00:00:00 2001 From: WillChilds-Klein <willck93@gmail.com> Date: Wed, 26 Mar 2025 01:44:03 +0000 Subject: [PATCH 3/3] =?UTF-8?q?Revert=20"=F0=9F=93=9C=F0=9F=A4=96=20Added?= =?UTF-8?q?=20by=20blurb=5Fit."?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit ca6c156264b577403c26d67e910f73302e1dbcde. --- .../next/Tests/2025-03-25-20-54-12.gh-issue-131736.firXbY.rst | 1 - 1 file changed, 1 deletion(-) delete mode 100644 Misc/NEWS.d/next/Tests/2025-03-25-20-54-12.gh-issue-131736.firXbY.rst diff --git a/Misc/NEWS.d/next/Tests/2025-03-25-20-54-12.gh-issue-131736.firXbY.rst b/Misc/NEWS.d/next/Tests/2025-03-25-20-54-12.gh-issue-131736.firXbY.rst deleted file mode 100644 index 9b4d13176bcb82..00000000000000 --- a/Misc/NEWS.d/next/Tests/2025-03-25-20-54-12.gh-issue-131736.firXbY.rst +++ /dev/null @@ -1 +0,0 @@ -Only do seclevel workaround if seclevel greater than 1.