mirror of https://github.com/python/cpython
0f2b469ce1
- Limited API needs to be enabled per source file - Some builds don't support Limited API, so Limited API tests must be skipped on those builds (currently this is `Py_TRACE_REFS`, but that may change.) - `Py_LIMITED_API` must be defined before `<Python.h>` is included. This puts the hoop-jumping in `testcapi/parts.h`, so individual test files can be relatively simple. (Currently that's only `vectorcall_limited.c`, imagine more.) |
||
---|---|---|
.. | ||
clinic | ||
README.txt | ||
heaptype.c | ||
parts.h | ||
unicode.c | ||
vectorcall.c | ||
vectorcall_limited.c |
README.txt
Tests in this directory are compiled into the _testcapi extension. The main file for the extension is Modules/_testcapimodule.c, which calls `_PyTestCapi_Init_*` from these functions.