summaryrefslogtreecommitdiffstats
path: root/Modules/_testcapimodule.c
diff options
context:
space:
mode:
authorSergey B Kirpichev <skirpichev@gmail.com>2023-11-01 05:44:54 (GMT)
committerGitHub <noreply@github.com>2023-11-01 05:44:54 (GMT)
commit33ed5fa69dbe25d64a910c450be527f4db9dc5dd (patch)
tree56c3d7703ff21786e91e1c45b8b6b6ee370567d2 /Modules/_testcapimodule.c
parentd9a5530d2327efa1fe66a04d31b5c67e42dbcd9c (diff)
downloadcpython-33ed5fa69dbe25d64a910c450be527f4db9dc5dd.zip
cpython-33ed5fa69dbe25d64a910c450be527f4db9dc5dd.tar.gz
cpython-33ed5fa69dbe25d64a910c450be527f4db9dc5dd.tar.bz2
gh-111495: add stub files for C API test modules (GH-111586)
This is to reduce merge conflicts (Modules/Setup.stdlib.in) for subsequent pull requests for the issue.
Diffstat (limited to 'Modules/_testcapimodule.c')
-rw-r--r--Modules/_testcapimodule.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index fc9dc74..300025c 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -3908,6 +3908,12 @@ 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;
}
@@ -3932,12 +3938,24 @@ PyInit__testcapi(void)
if (_PyTestCapi_Init_Float(m) < 0) {
return NULL;
}
+ if (_PyTestCapi_Init_Complex(m) < 0) {
+ return NULL;
+ }
+ if (_PyTestCapi_Init_Numbers(m) < 0) {
+ return NULL;
+ }
if (_PyTestCapi_Init_Dict(m) < 0) {
return NULL;
}
if (_PyTestCapi_Init_Set(m) < 0) {
return NULL;
}
+ if (_PyTestCapi_Init_List(m) < 0) {
+ return NULL;
+ }
+ if (_PyTestCapi_Init_Tuple(m) < 0) {
+ return NULL;
+ }
if (_PyTestCapi_Init_Structmember(m) < 0) {
return NULL;
}
@@ -3953,6 +3971,12 @@ PyInit__testcapi(void)
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;
}