mirror of
https://github.com/python/cpython
synced 2026-09-28 05:13:17 +03:00
gh-116417: Move 4 limited C API test files to _testlimitedcapi (#116571)
Move the following files from Modules/_testcapi/ to Modules/_testlimitedcapi/: * bytearray.c * bytes.c * pyos.c * sys.c Changes: * Replace PyBytes_AS_STRING() with PyBytes_AsString(). * Replace PyBytes_GET_SIZE() with PyBytes_Size(). * Update related test_capi tests. * Copy Modules/_testcapi/util.h to Modules/_testlimitedcapi/util.h.
This commit is contained in:
parent
d8712fa0c7
commit
1cc02ca063
17 changed files with 101 additions and 80 deletions
|
|
@ -26,11 +26,23 @@ PyInit__testlimitedcapi(void)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
if (_PyTestCapi_Init_VectorcallLimited(mod) < 0) {
|
||||
if (_PyTestCapi_Init_ByteArray(mod) < 0) {
|
||||
return NULL;
|
||||
}
|
||||
if (_PyTestCapi_Init_Bytes(mod) < 0) {
|
||||
return NULL;
|
||||
}
|
||||
if (_PyTestCapi_Init_HeaptypeRelative(mod) < 0) {
|
||||
return NULL;
|
||||
}
|
||||
if (_PyTestCapi_Init_PyOS(mod) < 0) {
|
||||
return NULL;
|
||||
}
|
||||
if (_PyTestCapi_Init_Sys(mod) < 0) {
|
||||
return NULL;
|
||||
}
|
||||
if (_PyTestCapi_Init_VectorcallLimited(mod) < 0) {
|
||||
return NULL;
|
||||
}
|
||||
return mod;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue