Skip to content

Commit 5c417a6

Browse files
committed
Update
1 parent 6bc3973 commit 5c417a6

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

Diff for: Modules/_testcapi/clinic/long.c.h

+9-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: Modules/_testcapi/long.c

+10-2
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
571+
arg: object
572+
/
573+
[clinic start generated code]*/
574+
569575
static PyObject *
570-
check_long_compact_api(PyObject *self, PyObject *arg)
576+
_testcapi_call_long_compact_api(PyObject *module, PyObject *arg)
577+
/*[clinic end generated code: output=7e3894f611b1b2b7 input=87b87396967af14c]*/
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+
_TESTCAPI_CALL_LONG_COMPACT_API_METHODDEF
591599
{NULL},
592600
};
593601

0 commit comments

Comments
 (0)