summaryrefslogtreecommitdiffstats
path: root/Modules/_testcapimodule.c
diff options
context:
space:
mode:
authorAnders Kaseorg <andersk@mit.edu>2023-09-07 02:42:58 (GMT)
committerGitHub <noreply@github.com>2023-09-07 02:42:58 (GMT)
commitf42edf1e7be5018a8988a219a168e231cbaa25e5 (patch)
tree1b55084d6f0f6078d4df852319da011a768c4dfc /Modules/_testcapimodule.c
parent3bfa24e29f286cbc1f42bdb4d2b1c0c9d643c8d6 (diff)
downloadcpython-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/_testcapimodule.c')
-rw-r--r--Modules/_testcapimodule.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index 5ff5172..9bd963b 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -3996,18 +3996,12 @@ PyInit__testcapi(void)
if (_PyTestCapi_Init_PyAtomic(m) < 0) {
return NULL;
}
-
-#ifndef LIMITED_API_AVAILABLE
- PyModule_AddObjectRef(m, "LIMITED_API_AVAILABLE", Py_False);
-#else
- PyModule_AddObjectRef(m, "LIMITED_API_AVAILABLE", Py_True);
if (_PyTestCapi_Init_VectorcallLimited(m) < 0) {
return NULL;
}
if (_PyTestCapi_Init_HeaptypeRelative(m) < 0) {
return NULL;
}
-#endif
PyState_AddModule(m, &_testcapimodule);
return m;