summaryrefslogtreecommitdiffstats
path: root/Include
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 /Include
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 'Include')
-rw-r--r--Include/cpython/coreconfig.h5
-rw-r--r--Include/internal/pycore_coreconfig.h5
2 files changed, 5 insertions, 5 deletions
diff --git a/Include/cpython/coreconfig.h b/Include/cpython/coreconfig.h
index 7ce1a02..c1a7298 100644
--- a/Include/cpython/coreconfig.h
+++ b/Include/cpython/coreconfig.h
@@ -408,11 +408,6 @@ typedef struct {
._init_main = 1}
/* Note: _PyCoreConfig_INIT sets other fields to 0/NULL */
-
-/* --- Function used for testing ---------------------------------- */
-
-PyAPI_FUNC(PyObject*) _Py_GetConfigsAsDict(void);
-
#ifdef __cplusplus
}
#endif
diff --git a/Include/internal/pycore_coreconfig.h b/Include/internal/pycore_coreconfig.h
index 3353844..e88a463 100644
--- a/Include/internal/pycore_coreconfig.h
+++ b/Include/internal/pycore_coreconfig.h
@@ -110,6 +110,11 @@ PyAPI_FUNC(_PyInitError) _PyCoreConfig_Read(_PyCoreConfig *config,
const _PyArgv *args);
PyAPI_FUNC(void) _PyCoreConfig_Write(const _PyCoreConfig *config);
+
+/* --- Function used for testing ---------------------------------- */
+
+PyAPI_FUNC(PyObject*) _Py_GetConfigsAsDict(void);
+
#ifdef __cplusplus
}
#endif