]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-46417: _testembed.c avoids Py_SetProgramName() (GH-30732)
authorVictor Stinner <vstinner@python.org>
Fri, 21 Jan 2022 01:12:18 +0000 (02:12 +0100)
committerGitHub <noreply@github.com>
Fri, 21 Jan 2022 01:12:18 +0000 (02:12 +0100)
commit6415e2ee4955b1a995c1e75544e2506b03780c3d
tree114b726b45a2c1987721d295a115f870c37adb2c
parente9e3eab0b868c7d0b48e472705024240d5c39d5c
bpo-46417: _testembed.c avoids Py_SetProgramName() (GH-30732)

* _testembed_Py_Initialize() now uses the PyConfig API, rather than
  deprecated Py_SetProgramName().
* Reduce INIT_LOOPS from 16 to 4: test_embed now takes 8.7 seconds
  rather than 14.7 seconds.
Lib/test/test_embed.py
Programs/_testembed.c