mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
add tests for PyInstanceMethod_Type
This commit is contained in:
parent
a3b341f142
commit
9b6df6afe0
2 changed files with 27 additions and 0 deletions
|
|
@ -1231,6 +1231,8 @@ PyInit__testcapi(void)
|
|||
PyModule_AddObject(m, "PY_SSIZE_T_MAX", PyLong_FromSsize_t(PY_SSIZE_T_MAX));
|
||||
PyModule_AddObject(m, "PY_SSIZE_T_MIN", PyLong_FromSsize_t(PY_SSIZE_T_MIN));
|
||||
PyModule_AddObject(m, "SIZEOF_PYGC_HEAD", PyLong_FromSsize_t(sizeof(PyGC_Head)));
|
||||
Py_INCREF(&PyInstanceMethod_Type);
|
||||
PyModule_AddObject(m, "instancemethod", (PyObject *)&PyInstanceMethod_Type);
|
||||
|
||||
TestError = PyErr_NewException("_testcapi.error", NULL, NULL);
|
||||
Py_INCREF(TestError);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue