Skip to content

Commit 72349ba

Browse files
committed
Add capi test file for modsupport
1 parent 894ef3d commit 72349ba

6 files changed

Lines changed: 18 additions & 1 deletion

File tree

Modules/Setup.stdlib.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
@MODULE__XXTESTFUZZ_TRUE@_xxtestfuzz _xxtestfuzz/_xxtestfuzz.c _xxtestfuzz/fuzzer.c
175175
@MODULE__TESTBUFFER_TRUE@_testbuffer _testbuffer.c
176176
@MODULE__TESTINTERNALCAPI_TRUE@_testinternalcapi _testinternalcapi.c _testinternalcapi/test_lock.c _testinternalcapi/pytime.c _testinternalcapi/set.c _testinternalcapi/test_critical_sections.c _testinternalcapi/complex.c
177-
@MODULE__TESTCAPI_TRUE@_testcapi _testcapimodule.c _testcapi/vectorcall.c _testcapi/heaptype.c _testcapi/abstract.c _testcapi/unicode.c _testcapi/dict.c _testcapi/set.c _testcapi/list.c _testcapi/tuple.c _testcapi/getargs.c _testcapi/datetime.c _testcapi/docstring.c _testcapi/mem.c _testcapi/watchers.c _testcapi/long.c _testcapi/float.c _testcapi/complex.c _testcapi/numbers.c _testcapi/structmember.c _testcapi/exceptions.c _testcapi/code.c _testcapi/buffer.c _testcapi/pyatomic.c _testcapi/run.c _testcapi/file.c _testcapi/codec.c _testcapi/immortal.c _testcapi/gc.c _testcapi/hash.c _testcapi/time.c _testcapi/bytes.c _testcapi/object.c _testcapi/monitoring.c _testcapi/config.c _testcapi/import.c _testcapi/frame.c _testcapi/type.c _testcapi/function.c
177+
@MODULE__TESTCAPI_TRUE@_testcapi _testcapimodule.c _testcapi/vectorcall.c _testcapi/heaptype.c _testcapi/abstract.c _testcapi/unicode.c _testcapi/dict.c _testcapi/set.c _testcapi/list.c _testcapi/tuple.c _testcapi/getargs.c _testcapi/datetime.c _testcapi/docstring.c _testcapi/mem.c _testcapi/watchers.c _testcapi/long.c _testcapi/float.c _testcapi/complex.c _testcapi/numbers.c _testcapi/structmember.c _testcapi/exceptions.c _testcapi/code.c _testcapi/buffer.c _testcapi/pyatomic.c _testcapi/run.c _testcapi/file.c _testcapi/codec.c _testcapi/immortal.c _testcapi/gc.c _testcapi/hash.c _testcapi/time.c _testcapi/bytes.c _testcapi/object.c _testcapi/modsupport.c _testcapi/monitoring.c _testcapi/config.c _testcapi/import.c _testcapi/frame.c _testcapi/type.c _testcapi/function.c
178178
@MODULE__TESTLIMITEDCAPI_TRUE@_testlimitedcapi _testlimitedcapi.c _testlimitedcapi/abstract.c _testlimitedcapi/bytearray.c _testlimitedcapi/bytes.c _testlimitedcapi/codec.c _testlimitedcapi/complex.c _testlimitedcapi/dict.c _testlimitedcapi/eval.c _testlimitedcapi/float.c _testlimitedcapi/heaptype_relative.c _testlimitedcapi/import.c _testlimitedcapi/list.c _testlimitedcapi/long.c _testlimitedcapi/object.c _testlimitedcapi/pyos.c _testlimitedcapi/set.c _testlimitedcapi/sys.c _testlimitedcapi/tuple.c _testlimitedcapi/unicode.c _testlimitedcapi/vectorcall_limited.c _testlimitedcapi/version.c _testlimitedcapi/file.c
179179
@MODULE__TESTCLINIC_TRUE@_testclinic _testclinic.c
180180
@MODULE__TESTCLINIC_LIMITED_TRUE@_testclinic_limited _testclinic_limited.c

Modules/_testcapi/modsupport.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#include "parts.h"
2+
3+
4+
5+
int
6+
_PyTestCapi_Init_Modsupport(PyObject *m)
7+
{
8+
return 0;
9+
}

Modules/_testcapi/parts.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ int _PyTestCapi_Init_Immortal(PyObject *module);
5858
int _PyTestCapi_Init_GC(PyObject *module);
5959
int _PyTestCapi_Init_Hash(PyObject *module);
6060
int _PyTestCapi_Init_Time(PyObject *module);
61+
int _PyTestCapi_Init_Modsupport(PyObject *module);
6162
int _PyTestCapi_Init_Monitoring(PyObject *module);
6263
int _PyTestCapi_Init_Object(PyObject *module);
6364
int _PyTestCapi_Init_Config(PyObject *mod);

Modules/_testcapimodule.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3465,6 +3465,9 @@ PyInit__testcapi(void)
34653465
if (_PyTestCapi_Init_Time(m) < 0) {
34663466
return NULL;
34673467
}
3468+
if (_PyTestCapi_Init_Modsupport(m) < 0) {
3469+
return NULL;
3470+
}
34683471
if (_PyTestCapi_Init_Monitoring(m) < 0) {
34693472
return NULL;
34703473
}

PCbuild/_testcapi.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
<ClCompile Include="..\Modules\_testcapi\immortal.c" />
126126
<ClCompile Include="..\Modules\_testcapi\gc.c" />
127127
<ClCompile Include="..\Modules\_testcapi\run.c" />
128+
<ClCompile Include="..\Modules\_testcapi\modsupport.c" />
128129
<ClCompile Include="..\Modules\_testcapi\monitoring.c" />
129130
<ClCompile Include="..\Modules\_testcapi\config.c" />
130131
<ClCompile Include="..\Modules\_testcapi\import.c" />

PCbuild/_testcapi.vcxproj.filters

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@
108108
<ClCompile Include="..\Modules\_testcapi\run.c">
109109
<Filter>Source Files</Filter>
110110
</ClCompile>
111+
<ClCompile Include="..\Modules\_testcapi\modsupport.c">
112+
<Filter>Source Files</Filter>
113+
</ClCompile>
111114
<ClCompile Include="..\Modules\_testcapi\monitoring.c">
112115
<Filter>Source Files</Filter>
113116
</ClCompile>

0 commit comments

Comments
 (0)