diff options
author | Anders Kaseorg <andersk@mit.edu> | 2023-09-07 02:42:58 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-07 02:42:58 (GMT) |
commit | f42edf1e7be5018a8988a219a168e231cbaa25e5 (patch) | |
tree | 1b55084d6f0f6078d4df852319da011a768c4dfc /Modules/_testcapi | |
parent | 3bfa24e29f286cbc1f42bdb4d2b1c0c9d643c8d6 (diff) | |
download | cpython-f42edf1e7be5018a8988a219a168e231cbaa25e5.zip cpython-f42edf1e7be5018a8988a219a168e231cbaa25e5.tar.gz cpython-f42edf1e7be5018a8988a219a168e231cbaa25e5.tar.bz2 |
gh-109045: Remove remaining LIMITED_API_AVAILABLE checks in tests (#109046)
Commit 13a00078b81776b23b0b6add69b848382240d1f2 (#108663) made all
Python builds compatible with the Limited API, and removed the
LIMITED_API_AVAILABLE flag. However, some tests were still checking
for that flag, so they were now being incorrectly skipped. Remove
these checks to let these tests run again.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
Diffstat (limited to 'Modules/_testcapi')
-rw-r--r-- | Modules/_testcapi/heaptype_relative.c | 4 | ||||
-rw-r--r-- | Modules/_testcapi/vectorcall_limited.c | 6 |
2 files changed, 0 insertions, 10 deletions
diff --git a/Modules/_testcapi/heaptype_relative.c b/Modules/_testcapi/heaptype_relative.c index c247ca3..53dd01d 100644 --- a/Modules/_testcapi/heaptype_relative.c +++ b/Modules/_testcapi/heaptype_relative.c @@ -3,8 +3,6 @@ #include <stddef.h> // max_align_t #include <string.h> // memset -#ifdef LIMITED_API_AVAILABLE - static PyType_Slot empty_slots[] = { {0, NULL}, }; @@ -339,5 +337,3 @@ _PyTestCapi_Init_HeaptypeRelative(PyObject *m) { return 0; } - -#endif // LIMITED_API_AVAILABLE diff --git a/Modules/_testcapi/vectorcall_limited.c b/Modules/_testcapi/vectorcall_limited.c index a96925e..e981c86 100644 --- a/Modules/_testcapi/vectorcall_limited.c +++ b/Modules/_testcapi/vectorcall_limited.c @@ -1,10 +1,6 @@ #define Py_LIMITED_API 0x030c0000 // 3.12 #include "parts.h" -#ifdef LIMITED_API_AVAILABLE - - - /* Test Vectorcall in the limited API */ static PyObject * @@ -175,5 +171,3 @@ _PyTestCapi_Init_VectorcallLimited(PyObject *m) { return 0; } - -#endif // LIMITED_API_AVAILABLE |