From 122c2410850f3dfca1aca778a07b0cf205a848c1 Mon Sep 17 00:00:00 2001 From: Yzi-Li <204532581+Yzi-Li@users.noreply.github.com> Date: Sat, 22 Nov 2025 21:04:01 +0800 Subject: [PATCH 1/3] Remove bad assert --- Lib/test/test_capi/test_opt.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/Lib/test/test_capi/test_opt.py b/Lib/test/test_capi/test_opt.py index 25372fee58e0d7..58242f9ac3a01f 100644 --- a/Lib/test/test_capi/test_opt.py +++ b/Lib/test/test_capi/test_opt.py @@ -2480,8 +2480,6 @@ def testfunc(n): testfunc(_testinternalcapi.TIER2_THRESHOLD) - ex = get_first_executor(testfunc) - assert ex is not None """)) def test_pop_top_specialize_none(self): From 1635bd30aa20960e35b8b74a85062124651f454b Mon Sep 17 00:00:00 2001 From: Yzi-Li <204532581+Yzi-Li@users.noreply.github.com> Date: Sat, 22 Nov 2025 21:15:19 +0800 Subject: [PATCH 2/3] Add NEWS entry --- .../next/Tests/2025-11-22-21-15-00.gh-issue-141833.QDZnXH.rst | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Misc/NEWS.d/next/Tests/2025-11-22-21-15-00.gh-issue-141833.QDZnXH.rst diff --git a/Misc/NEWS.d/next/Tests/2025-11-22-21-15-00.gh-issue-141833.QDZnXH.rst b/Misc/NEWS.d/next/Tests/2025-11-22-21-15-00.gh-issue-141833.QDZnXH.rst new file mode 100644 index 00000000000000..d2d2800ecdee17 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2025-11-22-21-15-00.gh-issue-141833.QDZnXH.rst @@ -0,0 +1,2 @@ +Remove ``assert ex is not None`` and the line getting the executor in +``test_attr_promotion_failure``. From 08c1f8970171b04b5927ceadde0ae6b89a11d80d Mon Sep 17 00:00:00 2001 From: Yzi-Li <204532581+Yzi-Li@users.noreply.github.com> Date: Sat, 22 Nov 2025 22:05:08 +0800 Subject: [PATCH 3/3] Remove NEWS entry --- .../next/Tests/2025-11-22-21-15-00.gh-issue-141833.QDZnXH.rst | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 Misc/NEWS.d/next/Tests/2025-11-22-21-15-00.gh-issue-141833.QDZnXH.rst diff --git a/Misc/NEWS.d/next/Tests/2025-11-22-21-15-00.gh-issue-141833.QDZnXH.rst b/Misc/NEWS.d/next/Tests/2025-11-22-21-15-00.gh-issue-141833.QDZnXH.rst deleted file mode 100644 index d2d2800ecdee17..00000000000000 --- a/Misc/NEWS.d/next/Tests/2025-11-22-21-15-00.gh-issue-141833.QDZnXH.rst +++ /dev/null @@ -1,2 +0,0 @@ -Remove ``assert ex is not None`` and the line getting the executor in -``test_attr_promotion_failure``.