Skip to content

Commit 9e4c0cf

Browse files
committed
Stackless issue python#235: Fix an assertion failure caused by python#188
This commit fixes an assert statement, that could fail since python#188. No functional change. (cherry picked from commit 5595eec)
1 parent 80a4c78 commit 9e4c0cf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Python/ceval.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,8 @@ do { \
581581
Py_DECREF(f2); \
582582
if (SLP_PEEK_NEXT_FRAME(tstate) != f) { \
583583
assert(f->f_execute == slp_eval_frame_value || f->f_execute == slp_eval_frame_noval || \
584-
f->f_execute == slp_eval_frame_setup_with || f->f_execute == slp_eval_frame_with_cleanup); \
584+
f->f_execute == slp_eval_frame_setup_with || f->f_execute == slp_eval_frame_with_cleanup || \
585+
f->f_execute == slp_eval_frame_yield_from); \
585586
if (f->f_execute == slp_eval_frame_noval) \
586587
f->f_execute = slp_eval_frame_value; \
587588
return (retval__); \

0 commit comments

Comments
 (0)