mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-36763: Remove _PyCoreConfig._init_main (GH-13066)
This commit is contained in:
parent
70005ac0fd
commit
4631da1242
6 changed files with 10 additions and 19 deletions
|
|
@ -84,7 +84,6 @@ main(int argc, char *argv[])
|
|||
/* Don't install importlib, since it could execute outdated bytecode. */
|
||||
config._install_importlib = 0;
|
||||
config._frozen = 1;
|
||||
config._init_main = 0;
|
||||
|
||||
_PyInitError err = _Py_InitializeFromConfig(&config);
|
||||
/* No need to call _PyCoreConfig_Clear() since we didn't allocate any
|
||||
|
|
|
|||
|
|
@ -354,8 +354,6 @@ static int test_init_global_config(void)
|
|||
putenv("PYTHONUNBUFFERED=");
|
||||
Py_UnbufferedStdioFlag = 1;
|
||||
|
||||
Py_FrozenFlag = 1;
|
||||
|
||||
/* FIXME: test Py_LegacyWindowsFSEncodingFlag */
|
||||
/* FIXME: test Py_LegacyWindowsStdioFlag */
|
||||
|
||||
|
|
@ -497,9 +495,6 @@ static int test_init_from_config(void)
|
|||
|
||||
config.check_hash_pycs_mode = L"always";
|
||||
|
||||
Py_FrozenFlag = 0;
|
||||
config._frozen = 1;
|
||||
|
||||
err = _Py_InitializeFromConfig(&config);
|
||||
if (_Py_INIT_FAILED(err)) {
|
||||
_Py_ExitInitError(err);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue