Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Address code review
  • Loading branch information
corona10 committed May 19, 2023
commit 74af1a5dfa4336144b5ac190f163104ac2fd3258
8 changes: 3 additions & 5 deletions Modules/_testcapi/clinic/exceptions.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions Modules/_testcapi/exceptions.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,11 @@ _testcapi_raise_exception_impl(PyObject *module, PyObject *exc, int num_args)

/*[clinic input]
_testcapi.raise_memoryerror

reliably raise a MemoryError
[clinic start generated code]*/

static PyObject *
_testcapi_raise_memoryerror_impl(PyObject *module)
/*[clinic end generated code: output=dd057803fb0131e6 input=00e9d6f183604386]*/
/*[clinic end generated code: output=dd057803fb0131e6 input=6ca521bd07fb73cb]*/
{
return PyErr_NoMemory();
}
Expand All @@ -175,14 +173,12 @@ _testcapi.fatal_error
message: str(accept={robuffer})
release_gil: bool = False
/

fatal_error(message, release_gil=False): call Py_FatalError(message)
[clinic start generated code]*/

static PyObject *
_testcapi_fatal_error_impl(PyObject *module, const char *message,
int release_gil)
/*[clinic end generated code: output=9c3237116e6a03e8 input=3d1709d2936fe086]*/
/*[clinic end generated code: output=9c3237116e6a03e8 input=1be357a2ccb04c8c]*/
{
if (release_gil) {
Py_BEGIN_ALLOW_THREADS
Expand Down