diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2022-10-30 12:01:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-30 12:01:30 (GMT) |
commit | 05e48865be69e1e5824f6915b588ff054717bb42 (patch) | |
tree | 716ac0f9e038f575b4212db6d4a7b6a76b484d59 /Misc/NEWS.d/next/Tests | |
parent | 76f989dc3e668d15b3ec9a90bf6530276530acac (diff) | |
download | cpython-05e48865be69e1e5824f6915b588ff054717bb42.zip cpython-05e48865be69e1e5824f6915b588ff054717bb42.tar.gz cpython-05e48865be69e1e5824f6915b588ff054717bb42.tar.bz2 |
gh-96853: Restore test coverage for Py_Initialize(Ex) (GH-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)
Diffstat (limited to 'Misc/NEWS.d/next/Tests')
-rw-r--r-- | Misc/NEWS.d/next/Tests/2022-10-12-14-57-06.gh-issue-96853.ANe-bw.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2022-10-12-14-57-06.gh-issue-96853.ANe-bw.rst b/Misc/NEWS.d/next/Tests/2022-10-12-14-57-06.gh-issue-96853.ANe-bw.rst new file mode 100644 index 0000000..89958c5 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2022-10-12-14-57-06.gh-issue-96853.ANe-bw.rst @@ -0,0 +1,3 @@ +Added explicit coverage of ``Py_Initialize`` (and hence ``Py_InitializeEx``) +back to the embedding tests (all other embedding tests migrated to +``Py_InitializeFromConfig`` in Python 3.11) |