gh-122759: Remove `assert` from `RERAISE` error handling (#122760)

This commit is contained in:
sobolevn 2024-08-07 17:25:25 +03:00 committed by GitHub
parent 76bdeebef6
commit 61a8bf2853
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 2 deletions

View File

@ -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();
}

View File

@ -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;
}