cpython/Modules/_testcapi
Petr Viktorin 0f2b469ce1
gh-95991: Add some infrastructure for testing Limited API in _testcapi (GH-95992)
- 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.)
2022-08-17 13:48:43 +02:00
..
clinic gh-90928: Statically Initialize the Keywords Tuple in Clinic-Generated Code (gh-95860) 2022-08-11 15:25:49 -06:00
README.txt
heaptype.c GH-95245: Move weakreflist into the pre-header. (GH-95996) 2022-08-16 13:57:18 +01:00
parts.h gh-95991: Add some infrastructure for testing Limited API in _testcapi (GH-95992) 2022-08-17 13:48:43 +02:00
unicode.c gh-95504: Fix negative numbers in PyUnicode_FromFormat (GH-95848) 2022-08-10 13:12:40 +02:00
vectorcall.c Fix downcast compiler warning in Modules/_testcapi/vectorcall.c (#95729) 2022-08-08 10:58:29 +02:00
vectorcall_limited.c gh-95991: Add some infrastructure for testing Limited API in _testcapi (GH-95992) 2022-08-17 13:48:43 +02:00

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.