Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-35233: Rewrite test_embed.InitConfigTests #10524

Merged
merged 3 commits into from Nov 13, 2018

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Nov 13, 2018

  • 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

https://bugs.python.org/issue35233

* 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
@vstinner vstinner merged commit 7ddd56f into python:master Nov 13, 2018
@vstinner vstinner deleted the global_config branch Nov 13, 2018
vstinner added a commit that referenced this pull request Nov 14, 2018
)

* Add C functions:

  * _Py_GetGlobalVariablesAsDict()
  * _PyCoreConfig_AsDict()
  * _PyMainInterpreterConfig_AsDict()

* Add new _testcapi methods:

  * get_global_config()
  * get_core_config()
  * get_main_config()

* test.pythoninfo: get global, core and main configuration
* _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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants