diff options
author | Victor Stinner <vstinner@python.org> | 2024-03-11 10:28:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-11 10:28:16 (GMT) |
commit | 1cc02ca063f50b8c527fbdde9957b03c145c1575 (patch) | |
tree | 84cd4d2d13c8ca869749827d8f91d592e8a01ca2 /Modules/_testcapimodule.c | |
parent | d8712fa0c75ad5ea56543903fa45674ab47cc647 (diff) | |
download | cpython-1cc02ca063f50b8c527fbdde9957b03c145c1575.zip cpython-1cc02ca063f50b8c527fbdde9957b03c145c1575.tar.gz cpython-1cc02ca063f50b8c527fbdde9957b03c145c1575.tar.bz2 |
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.
Diffstat (limited to 'Modules/_testcapimodule.c')
-rw-r--r-- | Modules/_testcapimodule.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c index b653604..b5e646f 100644 --- a/Modules/_testcapimodule.c +++ b/Modules/_testcapimodule.c @@ -4017,12 +4017,6 @@ PyInit__testcapi(void) if (_PyTestCapi_Init_Abstract(m) < 0) { return NULL; } - if (_PyTestCapi_Init_ByteArray(m) < 0) { - return NULL; - } - if (_PyTestCapi_Init_Bytes(m) < 0) { - return NULL; - } if (_PyTestCapi_Init_Unicode(m) < 0) { return NULL; } @@ -4077,18 +4071,12 @@ PyInit__testcapi(void) if (_PyTestCapi_Init_Buffer(m) < 0) { return NULL; } - if (_PyTestCapi_Init_PyOS(m) < 0) { - return NULL; - } if (_PyTestCapi_Init_File(m) < 0) { return NULL; } if (_PyTestCapi_Init_Codec(m) < 0) { return NULL; } - if (_PyTestCapi_Init_Sys(m) < 0) { - return NULL; - } if (_PyTestCapi_Init_Immortal(m) < 0) { return NULL; } |