diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-03-27 00:36:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-27 00:36:16 (GMT) |
commit | 8b9dbc017a190d13f717e714630d620adb7c7ac2 (patch) | |
tree | aec94454c3d4ee9f96f19d98eb64a9a9c5df7d97 /Lib | |
parent | 6a258c88906a7e8acde455ee2acb78b6f315ea0b (diff) | |
download | cpython-8b9dbc017a190d13f717e714630d620adb7c7ac2.zip cpython-8b9dbc017a190d13f717e714630d620adb7c7ac2.tar.gz cpython-8b9dbc017a190d13f717e714630d620adb7c7ac2.tar.bz2 |
bpo-36444: Remove _PyMainInterpreterConfig (GH-12571)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_embed.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py index c44d24e..f5e3cef 100644 --- a/Lib/test/test_embed.py +++ b/Lib/test/test_embed.py @@ -347,22 +347,6 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase): 'legacy_windows_stdio': 0, }) - # main config - COPY_MAIN_CONFIG = ( - # Copy core config to main config for expected values - 'argv', - 'base_exec_prefix', - 'base_prefix', - 'exec_prefix', - 'executable', - 'install_signal_handlers', - 'prefix', - 'pycache_prefix', - 'warnoptions', - # xoptions is created from core_config in check_main_config(). - # 'module_search_paths' is copied to 'module_search_path'. - ) - # global config DEFAULT_GLOBAL_CONFIG = { 'Py_HasFileSystemDefaultEncoding': 0, @@ -410,18 +394,6 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase): xoptions[opt] = True return xoptions - def check_main_config(self, config): - core_config = config['core_config'] - main_config = config['main_config'] - - # main config - expected = {} - for key in self.COPY_MAIN_CONFIG: - expected[key] = core_config[key] - expected['module_search_path'] = core_config['module_search_paths'] - expected['xoptions'] = self.main_xoptions(core_config['xoptions']) - self.assertEqual(main_config, expected) - def get_expected_config(self, expected, env): expected = dict(self.DEFAULT_CORE_CONFIG, **expected) @@ -523,7 +495,6 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase): self.check_core_config(config, expected_config) self.check_pre_config(config, expected_preconfig) - self.check_main_config(config) self.check_global_config(config) def test_init_default_config(self): |