cpython
cpython copied to clipboard
gh-96853: Restore test coverage for Py_Initialize(Ex)
- As most of
test_embednow usesPy_InitializeFromConfig, add a specific test case to coverPy_Initialize(Ex) - Rename
_testembedinit helper to clarify the API used - Add a
PyConfig_Clearcall inPy_InitializeExto 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)
- Issue: gh-96853