From: sobolevn Date: Wed, 7 Aug 2024 14:25:25 +0000 (+0300) Subject: gh-122759: Remove `assert` from `RERAISE` error handling (#122760) X-Git-Tag: v3.14.0a1~853 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=61a8bf28530558da239834785a0b590ae8900a16;p=thirdparty%2FPython%2Fcpython.git gh-122759: Remove `assert` from `RERAISE` error handling (#122760) --- diff --git a/Python/bytecodes.c b/Python/bytecodes.c index e4c97dee1f80..d28cbd767e78 100644 --- a/Python/bytecodes.c +++ b/Python/bytecodes.c @@ -1183,7 +1183,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 e560372a5f98..5890fcea8e64 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; }