summaryrefslogtreecommitdiffstats
path: root/Modules/_testcapimodule.c
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-04-18 09:37:26 (GMT)
committerGitHub <noreply@github.com>2019-04-18 09:37:26 (GMT)
commit23bace26ec265557697cf3b578b361c178070cd5 (patch)
tree41d99b73d99a1f8295ed6177113ed7796c8ed784 /Modules/_testcapimodule.c
parent11efd79076559cc6e4034bb36db73e5e4293f02d (diff)
downloadcpython-23bace26ec265557697cf3b578b361c178070cd5.zip
cpython-23bace26ec265557697cf3b578b361c178070cd5.tar.gz
cpython-23bace26ec265557697cf3b578b361c178070cd5.tar.bz2
bpo-36635: Add _testinternalcapi module (GH-12841)
Add a new _testinternalcapi module to test the internal C API. Move _Py_GetConfigsAsDict() function to the internal C API: _testembed now uses _testinternalcapi to access the function.
Diffstat (limited to 'Modules/_testcapimodule.c')
-rw-r--r--Modules/_testcapimodule.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/Modules/_testcapimodule.c b/Modules/_testcapimodule.c
index ae960de..6f4eb53 100644
--- a/Modules/_testcapimodule.c
+++ b/Modules/_testcapimodule.c
@@ -4736,13 +4736,6 @@ decode_locale_ex(PyObject *self, PyObject *args)
}
-static PyObject *
-get_configs(PyObject *self, PyObject *Py_UNUSED(args))
-{
- return _Py_GetConfigsAsDict();
-}
-
-
#ifdef Py_REF_DEBUG
static PyObject *
negative_refcount(PyObject *self, PyObject *Py_UNUSED(args))
@@ -4990,7 +4983,6 @@ static PyMethodDef TestMethods[] = {
{"bad_get", (PyCFunction)(void(*)(void))bad_get, METH_FASTCALL},
{"EncodeLocaleEx", encode_locale_ex, METH_VARARGS},
{"DecodeLocaleEx", decode_locale_ex, METH_VARARGS},
- {"get_configs", get_configs, METH_NOARGS},
#ifdef Py_REF_DEBUG
{"negative_refcount", negative_refcount, METH_NOARGS},
#endif