]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-142913: Update generated code that conflicted with other landed change (#143932)
authorDino Viehland <dinoviehland@meta.com>
Fri, 16 Jan 2026 19:10:15 +0000 (11:10 -0800)
committerGitHub <noreply@github.com>
Fri, 16 Jan 2026 19:10:15 +0000 (11:10 -0800)
Update test cases

Modules/_testinternalcapi/test_cases.c.h

index 09280c07241d0133d2ed38943d2a5aa4c6123897..fb584314ef40bc203af6f490dcc396adb764381f 100644 (file)
             _Py_GatherStats_GetIter(iterable);
             stack_pointer = _PyFrame_GetStackPointer(frame);
             #endif
-
             PyTypeObject *tp = PyStackRef_TYPE(iterable);
             if (tp == &PyTuple_Type || tp == &PyList_Type) {
                 iter = iterable;
             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++;