mirror of https://github.com/python/cpython
gh-122759: Remove `assert` from `RERAISE` error handling (#122760)
This commit is contained in:
parent
76bdeebef6
commit
61a8bf2853
|
@ -1183,7 +1183,6 @@ dummy_func(
|
||||||
assert(!_PyErr_Occurred(tstate));
|
assert(!_PyErr_Occurred(tstate));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
assert(PyLong_Check(lasti));
|
|
||||||
_PyErr_SetString(tstate, PyExc_SystemError, "lasti is not an int");
|
_PyErr_SetString(tstate, PyExc_SystemError, "lasti is not an int");
|
||||||
ERROR_NO_POP();
|
ERROR_NO_POP();
|
||||||
}
|
}
|
||||||
|
|
|
@ -5875,7 +5875,6 @@
|
||||||
assert(!_PyErr_Occurred(tstate));
|
assert(!_PyErr_Occurred(tstate));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
assert(PyLong_Check(lasti));
|
|
||||||
_PyErr_SetString(tstate, PyExc_SystemError, "lasti is not an int");
|
_PyErr_SetString(tstate, PyExc_SystemError, "lasti is not an int");
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue