diff --git a/Python/bytecodes.c b/Python/bytecodes.c index 9a1af0e920188b..33a242fe068777 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -1182,7 +1182,6 @@ dummy_func( assert(!_PyErr_Occurred(tstate)); } else { - assert(PyLong_Check(lasti)); _PyErr_SetString(tstate, PyExc_SystemError, "lasti is not an int"); ERROR_NO_POP(); } diff --git a/Python/generated_cases.c.h b/Python/generated_cases.c.h index f670353cdbde56..ac09b83fd2a2ec 100644 --- a/Python/generated_cases.c.h +++ b/Python/generated_cases.c.h @@ -5875,7 +5875,6 @@ assert(!_PyErr_Occurred(tstate)); } else { - assert(PyLong_Check(lasti)); _PyErr_SetString(tstate, PyExc_SystemError, "lasti is not an int"); goto error; }