Skip to content

Commit 99abea3

Browse files
committed
Add Modules/_testcapi/tuple.c
1 parent bfd0a52 commit 99abea3

File tree

6 files changed

+26
-1
lines changed

6 files changed

+26
-1
lines changed

Modules/Setup.stdlib.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
@MODULE__XXTESTFUZZ_TRUE@_xxtestfuzz _xxtestfuzz/_xxtestfuzz.c _xxtestfuzz/fuzzer.c
160160
@MODULE__TESTBUFFER_TRUE@_testbuffer _testbuffer.c
161161
@MODULE__TESTINTERNALCAPI_TRUE@_testinternalcapi _testinternalcapi.c _testinternalcapi/test_lock.c _testinternalcapi/pytime.c _testinternalcapi/set.c
162-
@MODULE__TESTCAPI_TRUE@_testcapi _testcapimodule.c _testcapi/vectorcall.c _testcapi/vectorcall_limited.c _testcapi/heaptype.c _testcapi/abstract.c _testcapi/bytearray.c _testcapi/bytes.c _testcapi/unicode.c _testcapi/dict.c _testcapi/set.c _testcapi/list.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/pyos.c _testcapi/immortal.c _testcapi/heaptype_relative.c _testcapi/gc.c _testcapi/sys.c
162+
@MODULE__TESTCAPI_TRUE@_testcapi _testcapimodule.c _testcapi/vectorcall.c _testcapi/vectorcall_limited.c _testcapi/heaptype.c _testcapi/abstract.c _testcapi/bytearray.c _testcapi/bytes.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/pyos.c _testcapi/immortal.c _testcapi/heaptype_relative.c _testcapi/gc.c _testcapi/sys.c
163163
@MODULE__TESTCLINIC_TRUE@_testclinic _testclinic.c
164164
@MODULE__TESTCLINIC_LIMITED_TRUE@_testclinic_limited _testclinic_limited.c
165165

Modules/_testcapi/parts.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ int _PyTestCapi_Init_Numbers(PyObject *module);
4646
int _PyTestCapi_Init_Dict(PyObject *module);
4747
int _PyTestCapi_Init_Set(PyObject *module);
4848
int _PyTestCapi_Init_List(PyObject *module);
49+
int _PyTestCapi_Init_Tuple(PyObject *module);
4950
int _PyTestCapi_Init_Structmember(PyObject *module);
5051
int _PyTestCapi_Init_Exceptions(PyObject *module);
5152
int _PyTestCapi_Init_Code(PyObject *module);

Modules/_testcapi/tuple.c

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#include "parts.h"
2+
#include "util.h"
3+
4+
5+
static PyMethodDef test_methods[] = {
6+
{NULL},
7+
};
8+
9+
int
10+
_PyTestCapi_Init_Tuple(PyObject *m)
11+
{
12+
if (PyModule_AddFunctions(m, test_methods) < 0){
13+
return -1;
14+
}
15+
16+
return 0;
17+
}

Modules/_testcapimodule.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3953,6 +3953,9 @@ PyInit__testcapi(void)
39533953
if (_PyTestCapi_Init_List(m) < 0) {
39543954
return NULL;
39553955
}
3956+
if (_PyTestCapi_Init_Tuple(m) < 0) {
3957+
return NULL;
3958+
}
39563959
if (_PyTestCapi_Init_Structmember(m) < 0) {
39573960
return NULL;
39583961
}

PCbuild/_testcapi.vcxproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
<ClCompile Include="..\Modules\_testcapi\dict.c" />
107107
<ClCompile Include="..\Modules\_testcapi\set.c" />
108108
<ClCompile Include="..\Modules\_testcapi\list.c" />
109+
<ClCompile Include="..\Modules\_testcapi\tuple.c" />
109110
<ClCompile Include="..\Modules\_testcapi\datetime.c" />
110111
<ClCompile Include="..\Modules\_testcapi\docstring.c" />
111112
<ClCompile Include="..\Modules\_testcapi\mem.c" />

PCbuild/_testcapi.vcxproj.filters

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
<ClCompile Include="..\Modules\_testcapi\list.c">
4949
<Filter>Source Files</Filter>
5050
</ClCompile>
51+
<ClCompile Include="..\Modules\_testcapi\tuple.c">
52+
<Filter>Source Files</Filter>
53+
</ClCompile>
5154
<ClCompile Include="..\Modules\_testcapi\datetime.c">
5255
<Filter>Source Files</Filter>
5356
</ClCompile>

0 commit comments

Comments
 (0)