Skip to content

Commit 71a0b12

Browse files
committed
Update
1 parent 6bc3973 commit 71a0b12

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

Modules/_testcapi/clinic/long.c.h

Lines changed: 9 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Modules/_testcapi/long.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,16 @@ _testcapi_test_long_numbits_impl(PyObject *module)
566566
Py_RETURN_NONE;
567567
}
568568

569+
/*[clinic input]
570+
_testcapi.call_long_compact_api as check_long_compact_api
571+
arg: object
572+
/
573+
[clinic start generated code]*/
574+
569575
static PyObject *
570-
check_long_compact_api(PyObject *self, PyObject *arg)
576+
check_long_compact_api(PyObject *module, PyObject *arg)
577+
/*[clinic end generated code: output=c54eac6bc18ffa82 input=5f379e8e7b5f967b]*/
578+
571579
{
572580
assert(PyLong_Check(arg));
573581
int is_compact = PyUnstable_Long_IsCompact((PyLongObject*)arg);
@@ -587,7 +595,7 @@ static PyMethodDef test_methods[] = {
587595
_TESTCAPI_TEST_LONG_LONG_AND_OVERFLOW_METHODDEF
588596
_TESTCAPI_TEST_LONG_NUMBITS_METHODDEF
589597
_TESTCAPI_TEST_LONGLONG_API_METHODDEF
590-
{"call_long_compact_api", check_long_compact_api, METH_O},
598+
CHECK_LONG_COMPACT_API_METHODDEF
591599
{NULL},
592600
};
593601

0 commit comments

Comments
 (0)