diff options
author | Victor Stinner <vstinner@python.org> | 2022-01-21 01:12:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-21 01:12:18 (GMT) |
commit | 6415e2ee4955b1a995c1e75544e2506b03780c3d (patch) | |
tree | 114b726b45a2c1987721d295a115f870c37adb2c /Lib/test/test_embed.py | |
parent | e9e3eab0b868c7d0b48e472705024240d5c39d5c (diff) | |
download | cpython-6415e2ee4955b1a995c1e75544e2506b03780c3d.zip cpython-6415e2ee4955b1a995c1e75544e2506b03780c3d.tar.gz cpython-6415e2ee4955b1a995c1e75544e2506b03780c3d.tar.bz2 |
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.
Diffstat (limited to 'Lib/test/test_embed.py')
-rw-r--r-- | Lib/test/test_embed.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py index 204b194..19c53c3 100644 --- a/Lib/test/test_embed.py +++ b/Lib/test/test_embed.py @@ -32,7 +32,7 @@ API_PYTHON = 2 # _PyCoreConfig_InitIsolatedConfig() API_ISOLATED = 3 -INIT_LOOPS = 16 +INIT_LOOPS = 4 MAX_HASH_SEED = 4294967295 |