8000 [3.11] gh-96853: Restore test coverage for Py_Initialize(Ex) (GH-98212) by miss-islington · Pull Request #98874 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.11] gh-96853: Restore test coverage for Py_Initialize(Ex) (GH-98212) #98874

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

Merged
merged 2 commits into from
Oct 30, 2022

Conversation

miss-islington
Copy link
Contributor
@miss-islington miss-islington commented Oct 30, 2022
  • As most of test_embed now uses Py_InitializeFromConfig, add
    a specific test case to cover Py_Initialize (and Py_InitializeEx)
  • Rename _testembed init helper to clarify the API used
  • Add a PyConfig_Clear call in Py_InitializeEx to make
    the code more obviously correct (it already didn't leak as
    none of the dynamically allocated config fields were being
    populated, but it's clearer if the wrappers follow the
    documented API usage guidelines)
    (cherry picked from commit 05e4886)

Co-authored-by: Nick Coghlan ncoghlan@gmail.com

…-98212)

* As most of `test_embed` now uses `Py_InitializeFromConfig`, add
  a specific test case to cover `Py_Initialize` (and `Py_InitializeEx`)
* Rename `_testembed` init helper to clarify the API used
* Add a `PyConfig_Clear` call in `Py_InitializeEx` to make
  the code more obviously correct (it already didn't leak as
  none of the dynamically allocated config fields were being
  populated, but it's clearer if the wrappers follow the
  documented API usage guidelines)
(cherry picked from commit 05e4886)

Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
@miss-islington
Copy link
Contributor Author

Sorry, I can't merge this PR. Reason: 3 of 9 required status checks are expected..

@ncoghlan ncoghlan merged commit 57dd110 into python:3.11 Oct 30, 2022
@miss-islington miss-islington deleted the backport-05e4886-3.11 branch October 30, 2022 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0