RETURN
instruction can be missing line number in except*
#125845
Labels
type-bug
An unexpected behavior, bug, or error
Bug report
Bug description:
If the check in
all_exits_have_lineno
(flowgraph.c:520) is changed frominstr->i_opcode == RETURN_VALUE
toinstr->i_opcode == RETURN_VALUE || instr->i_opcode == RETURN_CONST
thentest_sys_settrace
will fail with an assert.The function triggering the assert is this:
CPython versions tested on:
CPython main branch
Operating systems tested on:
No response
The text was updated successfully, but these errors were encountered: