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.)
P
Petr Viktorin committed
0f2b469ce1a6f123ad9e151b1771651b3e1d2de6
Parent: 7276ca2
Committed by GitHub <noreply@github.com>
on 8/17/2022, 11:48:43 AM