Revert "bpo-35239: _PySys_EndInit() copies module_search_path (GH-10532)" (GH-10660)
This reverts commit d2be9a5c13221fb84c2221bbfd93efac6111e697.
diff --git a/Lib/test/test_embed.py b/Lib/test/test_embed.py
index 89797d2..11f37f0 100644
--- a/Lib/test/test_embed.py
+++ b/Lib/test/test_embed.py
@@ -301,6 +301,10 @@
}
# main config
+ UNTESTED_MAIN_CONFIG = (
+ # FIXME: untested main configuration variables
+ 'module_search_path',
+ )
COPY_MAIN_CONFIG = (
# Copy core config to main config for expected values
'argv',
@@ -311,8 +315,7 @@
'install_signal_handlers',
'prefix',
'warnoptions',
- # xoptions is created from core_config in check_main_config().
- # 'module_search_paths' is copied to 'module_search_path'.
+ # xoptions is created from core_config in check_main_config()
)
# global config
@@ -386,10 +389,12 @@
main_config = config['main_config']
# main config
+ for key in self.UNTESTED_MAIN_CONFIG:
+ del main_config[key]
+
expected_main = {}
for key in self.COPY_MAIN_CONFIG:
expected_main[key] = core_config[key]
- expected_main['module_search_path'] = core_config['module_search_paths']
expected_main['xoptions'] = self.main_xoptions(core_config['xoptions'])
self.assertEqual(main_config, expected_main)