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

Method test_init_compat_env

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

Source from the content-addressed store, hash-verified

1102
1103 @unittest.skipIf(support.check_bolt_optimized, "segfaults on BOLT instrumented binaries")
1104 def test_init_compat_env(self):
1105 preconfig = {
1106 'allocator': ALLOCATOR_FOR_CONFIG,
1107 }
1108 config = {
1109 'use_hash_seed': True,
1110 'hash_seed': 42,
1111 'tracemalloc': 2,
1112 'import_time': 1,
1113 'code_debug_ranges': False,
1114 'malloc_stats': True,
1115 'pymalloc_hugepages': True,
1116 'inspect': True,
1117 'optimization_level': 2,
1118 'pythonpath_env': '/my/path',
1119 'pycache_prefix': 'env_pycache_prefix',
1120 'write_bytecode': False,
1121 'verbose': 1,
1122 'buffered_stdio': False,
1123 'stdio_encoding': 'iso8859-1',
1124 'stdio_errors': 'replace',
1125 'user_site_directory': False,
1126 'faulthandler': True,
1127 'warnoptions': ['EnvVar'],
1128 'platlibdir': 'env_platlibdir',
1129 'module_search_paths': self.IGNORE_CONFIG,
1130 'safe_path': True,
1131 'int_max_str_digits': 4567,
1132 'perf_profiling': 1,
1133 }
1134 if Py_STATS:
1135 config['_pystats'] = 1
1136 self.check_all_configs("test_init_compat_env", config, preconfig,
1137 api=API_COMPAT)
1138
1139 @unittest.skipIf(support.check_bolt_optimized, "segfaults on BOLT instrumented binaries")
1140 def test_init_python_env(self):

Callers

nothing calls this directly

Calls 1

check_all_configsMethod · 0.95

Tested by

no test coverage detected