Skip to content

Commit 5996636

Browse files
authored
gh-142913: Update generated code that conflicted with other landed change (#143932)
Update test cases
1 parent 4d5a676 commit 5996636

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Modules/_testinternalcapi/test_cases.c.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6226,7 +6226,6 @@
62266226
_Py_GatherStats_GetIter(iterable);
62276227
stack_pointer = _PyFrame_GetStackPointer(frame);
62286228
#endif
6229-
62306229
PyTypeObject *tp = PyStackRef_TYPE(iterable);
62316230
if (tp == &PyTuple_Type || tp == &PyList_Type) {
62326231
iter = iterable;
@@ -10427,7 +10426,7 @@
1042710426
if (gen == NULL) {
1042810427
JUMP_TO_LABEL(error);
1042910428
}
10430-
assert(STACK_LEVEL() == 0);
10429+
assert(STACK_LEVEL() <= 2);
1043110430
_PyFrame_SetStackPointer(frame, stack_pointer);
1043210431
_PyInterpreterFrame *gen_frame = &gen->gi_iframe;
1043310432
frame->instr_ptr++;

0 commit comments

Comments
 (0)