diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-11-13 23:24:28 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-13 23:24:28 (GMT) |
commit | 7ddd56f4d835c6107b20a0b4233185bb59270142 (patch) | |
tree | faffdfb7ca138f1b40c608b3b2727cfe34f1f5f3 /Include | |
parent | 746b2d35ea47005054ed774fecaed64fab803d7d (diff) | |
download | cpython-7ddd56f4d835c6107b20a0b4233185bb59270142.zip cpython-7ddd56f4d835c6107b20a0b4233185bb59270142.tar.gz cpython-7ddd56f4d835c6107b20a0b4233185bb59270142.tar.bz2 |
bpo-35233: Rewrite test_embed.InitConfigTests (GH-10524)
* Fix _PyCoreConfig_SetGlobalConfig(): set also Py_FrozenFlag
* Fix _PyCoreConfig_AsDict(): export also xoptions
* Add _Py_GetGlobalVariablesAsDict() and _testcapi.get_global_config()
* test.pythoninfo: dump also global configuration variables
* _testembed now serializes global, core and main configurations
using JSON to reuse _Py_GetGlobalVariablesAsDict(),
_PyCoreConfig_AsDict() and _PyMainInterpreterConfig_AsDict(),
rather than duplicating code.
* test_embed.InitConfigTests now test much more configuration
variables
Diffstat (limited to 'Include')
-rw-r--r-- | Include/coreconfig.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/coreconfig.h b/Include/coreconfig.h index a7d3983..f71a364 100644 --- a/Include/coreconfig.h +++ b/Include/coreconfig.h @@ -361,6 +361,7 @@ PyAPI_FUNC(int) _PyCoreConfig_GetEnvDup( /* Used by _testcapi.get_coreconfig() */ PyAPI_FUNC(PyObject *) _PyCoreConfig_AsDict(const _PyCoreConfig *config); +PyAPI_FUNC(PyObject *) _Py_GetGlobalVariablesAsDict(void); #endif #ifdef __cplusplus |