From: Dino Viehland Date: Fri, 16 Jan 2026 19:10:15 +0000 (-0800) Subject: gh-142913: Update generated code that conflicted with other landed change (#143932) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5996636ab5f1f0fd0bac2ff7cce0fbe156168f87;p=thirdparty%2FPython%2Fcpython.git gh-142913: Update generated code that conflicted with other landed change (#143932) Update test cases --- diff --git a/Modules/_testinternalcapi/test_cases.c.h b/Modules/_testinternalcapi/test_cases.c.h index 09280c07241d..fb584314ef40 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++;