FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.11] gh-96853: Restore test coverage for Py_Initialize(Ex) (GH-98212) by miss-islington · Pull Request #98874 · python/cpython · GitHub

/ cpython Public

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

Merged
ncoghlan merged 2 commits into
python:3.11from
miss-islington:backport-05e4886-3.11
Oct 30, 2022
Merged

ncoghlan merged 2 commits into
python:3.11from
miss-islington:backport-05e4886-3.11

Conversation

miss-islington commented Oct 30, 2022
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor
  • 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>

Copy link
Copy Markdown
Contributor Author

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

ncoghlan merged commit 57dd110 into python:3.11 Oct 30, 2022
miss-islington deleted the backport-05e4886-3.11 branch October 30, 2022 23:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL