https://github.com/python/cpython/commit/5996636ab5f1f0fd0bac2ff7cce0fbe156168f87
commit: 5996636ab5f1f0fd0bac2ff7cce0fbe156168f87
branch: main
author: Dino Viehland <[email protected]>
committer: DinoV <[email protected]>
date: 2026-01-16T11:10:15-08:00
summary:

 gh-142913: Update generated code that conflicted with other landed change 
(#143932)

Update test cases

files:
M Modules/_testinternalcapi/test_cases.c.h

diff --git a/Modules/_testinternalcapi/test_cases.c.h 
b/Modules/_testinternalcapi/test_cases.c.h
index 09280c07241d01..fb584314ef40bc 100644
--- a/Modules/_testinternalcapi/test_cases.c.h
+++ b/Modules/_testinternalcapi/test_cases.c.h
@@ -6226,7 +6226,6 @@
             _Py_GatherStats_GetIter(iterable);
             stack_pointer = _PyFrame_GetStackPointer(frame);
             #endif
-
             PyTypeObject *tp = PyStackRef_TYPE(iterable);
             if (tp == &PyTuple_Type || tp == &PyList_Type) {
                 iter = iterable;
@@ -10427,7 +10426,7 @@
             if (gen == NULL) {
                 JUMP_TO_LABEL(error);
             }
-            assert(STACK_LEVEL() == 0);
+            assert(STACK_LEVEL() <= 2);
             _PyFrame_SetStackPointer(frame, stack_pointer);
             _PyInterpreterFrame *gen_frame = &gen->gi_iframe;
             frame->instr_ptr++;

_______________________________________________
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]

Reply via email to