mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
- 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 | ||
| heaptype.c | ||
| parts.h | ||
| README.txt | ||
| unicode.c | ||
| vectorcall.c | ||
| vectorcall_limited.c | ||
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.