@@ -347,22 +347,6 @@ class InitConfigTests(EmbeddingTestsMixin, unittest.TestCase):
347347 'legacy_windows_stdio' : 0 ,
348348 })
349349
350- # main config
351- COPY_MAIN_CONFIG = (
352- # Copy core config to main config for expected values
353- 'argv' ,
354- 'base_exec_prefix' ,
355- 'base_prefix' ,
356- 'exec_prefix' ,
357- 'executable' ,
358- 'install_signal_handlers' ,
359- 'prefix' ,
360- 'pycache_prefix' ,
361- 'warnoptions' ,
362- # xoptions is created from core_config in check_main_config().
363- # 'module_search_paths' is copied to 'module_search_path'.
364- )
365-
366350 # global config
367351 DEFAULT_GLOBAL_CONFIG = {
368352 'Py_HasFileSystemDefaultEncoding' : 0 ,
@@ -410,18 +394,6 @@ def main_xoptions(self, xoptions_list):
410394 xoptions [opt ] = True
411395 return xoptions
412396
413- def check_main_config (self , config ):
414- core_config = config ['core_config' ]
415- main_config = config ['main_config' ]
416-
417- # main config
418- expected = {}
419- for key in self .COPY_MAIN_CONFIG :
420- expected [key ] = core_config [key ]
421- expected ['module_search_path' ] = core_config ['module_search_paths' ]
422- expected ['xoptions' ] = self .main_xoptions (core_config ['xoptions' ])
423- self .assertEqual (main_config , expected )
424-
425397 def get_expected_config (self , expected , env ):
426398 expected = dict (self .DEFAULT_CORE_CONFIG , ** expected )
427399
@@ -523,7 +495,6 @@ def check_config(self, testname, expected_config, expected_preconfig):
523495
524496 self .check_core_config (config , expected_config )
525497 self .check_pre_config (config , expected_preconfig )
526- self .check_main_config (config )
527498 self .check_global_config (config )
528499
529500 def test_init_default_config (self ):
0 commit comments