forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-111495: add stub files for C API test modules (pythonGH-111586)
This is to reduce merge conflicts (Modules/Setup.stdlib.in) for subsequent pull requests for the issue.
- Loading branch information
1 parent
d9a5530
commit 33ed5fa
Showing
13 changed files
with
204 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "parts.h" | ||
#include "util.h" | ||
|
||
|
||
static PyMethodDef test_methods[] = { | ||
{NULL}, | ||
}; | ||
|
||
int | ||
_PyTestCapi_Init_ByteArray(PyObject *m) | ||
{ | ||
if (PyModule_AddFunctions(m, test_methods) < 0) { | ||
return -1; | ||
} | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "parts.h" | ||
#include "util.h" | ||
|
||
|
||
static PyMethodDef test_methods[] = { | ||
{NULL}, | ||
}; | ||
|
||
int | ||
_PyTestCapi_Init_Bytes(PyObject *m) | ||
{ | ||
if (PyModule_AddFunctions(m, test_methods) < 0) { | ||
return -1; | ||
} | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "parts.h" | ||
#include "util.h" | ||
|
||
|
||
static PyMethodDef test_methods[] = { | ||
{NULL}, | ||
}; | ||
|
||
int | ||
_PyTestCapi_Init_Codec(PyObject *m) | ||
{ | ||
if (PyModule_AddFunctions(m, test_methods) < 0){ | ||
return -1; | ||
} | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include "parts.h" | ||
#include "util.h" | ||
|
||
static PyMethodDef test_methods[] = { | ||
{NULL}, | ||
}; | ||
|
||
int | ||
_PyTestCapi_Init_Complex(PyObject *mod) | ||
{ | ||
if (PyModule_AddFunctions(mod, test_methods) < 0) { | ||
return -1; | ||
} | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "parts.h" | ||
#include "util.h" | ||
|
||
|
||
static PyMethodDef test_methods[] = { | ||
{NULL}, | ||
}; | ||
|
||
int | ||
_PyTestCapi_Init_File(PyObject *m) | ||
{ | ||
if (PyModule_AddFunctions(m, test_methods) < 0){ | ||
return -1; | ||
} | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "parts.h" | ||
#include "util.h" | ||
|
||
|
||
static PyMethodDef test_methods[] = { | ||
{NULL}, | ||
}; | ||
|
||
int | ||
_PyTestCapi_Init_List(PyObject *m) | ||
{ | ||
if (PyModule_AddFunctions(m, test_methods) < 0){ | ||
return -1; | ||
} | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include "parts.h" | ||
#include "util.h" | ||
|
||
static PyMethodDef test_methods[] = { | ||
{NULL}, | ||
}; | ||
|
||
int | ||
_PyTestCapi_Init_Numbers(PyObject *mod) | ||
{ | ||
if (PyModule_AddFunctions(mod, test_methods) < 0) { | ||
return -1; | ||
} | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#include "parts.h" | ||
#include "util.h" | ||
|
||
|
||
static PyMethodDef test_methods[] = { | ||
{NULL}, | ||
}; | ||
|
||
int | ||
_PyTestCapi_Init_Tuple(PyObject *m) | ||
{ | ||
if (PyModule_AddFunctions(m, test_methods) < 0){ | ||
return -1; | ||
} | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters