MCPcopy Index your code
hub / github.com/python/cpython / _get_expected_config

Method _get_expected_config

Lib/test/test_embed.py:827–841  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

825 self.fail(f"fail to decode stdout: {stdout!r}")
826
827 def _get_expected_config(self):
828 cls = InitConfigTests
829 if cls.EXPECTED_CONFIG is None:
830 cls.EXPECTED_CONFIG = self._get_expected_config_impl()
831
832 # get a copy
833 configs = {}
834 for config_key, config_value in cls.EXPECTED_CONFIG.items():
835 config = {}
836 for key, value in config_value.items():
837 if isinstance(value, list):
838 value = value.copy()
839 config[key] = value
840 configs[config_key] = config
841 return configs
842
843 def get_expected_config(self, expected_preconfig, expected,
844 env, api, modify_path_cb=None):

Callers 7

get_expected_configMethod · 0.95
test_init_setpathMethod · 0.95
module_search_pathsMethod · 0.95
copy_paths_by_envMethod · 0.95

Calls 3

itemsMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected