summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_embed.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2019-03-27 01:04:16 (GMT)
committerGitHub <noreply@github.com>2019-03-27 01:04:16 (GMT)
commit484f20d2ff95cc2e1bea759852da307bc1d1d944 (patch)
tree2f170dbbabfbff21d45d5c87d9bc0ecd73ba31ad /Lib/test/test_embed.py
parent8b9dbc017a190d13f717e714630d620adb7c7ac2 (diff)
downloadcpython-484f20d2ff95cc2e1bea759852da307bc1d1d944.zip
cpython-484f20d2ff95cc2e1bea759852da307bc1d1d944.tar.gz
cpython-484f20d2ff95cc2e1bea759852da307bc1d1d944.tar.bz2
bpo-36444: Add _PyCoreConfig._init_main (GH-12572)
* Add _PyCoreConfig._init_main: if equals to zero, _Py_InitializeFromConfig() doesn't call _Py_InitializeMainInterpreter(). * Add interp_p parameter to _Py_InitializeFromConfig(). * pymain_init() now calls _Py_InitializeFromConfig(). * Make _Py_InitializeCore() private.
Diffstat (limited to 'Lib/test/test_embed.py')
-rw-r--r--Lib/test/test_embed.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py
index f5e3cef..c63ea5a 100644
--- a/Lib/test/test_embed.py
+++ b/Lib/test/test_embed.py
@@ -338,6 +338,7 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
'_install_importlib': 1,
'_check_hash_pycs_mode': 'default',
'_frozen': 0,
+ '_init_main': 1,
}
if MS_WINDOWS:
DEFAULT_PRE_CONFIG.update({