(self)
| 1138 | |
| 1139 | @unittest.skipIf(support.check_bolt_optimized, "segfaults on BOLT instrumented binaries") |
| 1140 | def test_init_python_env(self): |
| 1141 | preconfig = { |
| 1142 | 'allocator': ALLOCATOR_FOR_CONFIG, |
| 1143 | 'utf8_mode': 1, |
| 1144 | } |
| 1145 | config = { |
| 1146 | 'use_hash_seed': True, |
| 1147 | 'hash_seed': 42, |
| 1148 | 'tracemalloc': 2, |
| 1149 | 'import_time': 1, |
| 1150 | 'code_debug_ranges': False, |
| 1151 | 'malloc_stats': True, |
| 1152 | 'pymalloc_hugepages': True, |
| 1153 | 'inspect': True, |
| 1154 | 'optimization_level': 2, |
| 1155 | 'pythonpath_env': '/my/path', |
| 1156 | 'pycache_prefix': 'env_pycache_prefix', |
| 1157 | 'write_bytecode': False, |
| 1158 | 'verbose': 1, |
| 1159 | 'buffered_stdio': False, |
| 1160 | 'stdio_encoding': 'iso8859-1', |
| 1161 | 'stdio_errors': 'replace', |
| 1162 | 'user_site_directory': False, |
| 1163 | 'faulthandler': True, |
| 1164 | 'warnoptions': ['EnvVar'], |
| 1165 | 'platlibdir': 'env_platlibdir', |
| 1166 | 'module_search_paths': self.IGNORE_CONFIG, |
| 1167 | 'safe_path': True, |
| 1168 | 'int_max_str_digits': 4567, |
| 1169 | 'perf_profiling': 1, |
| 1170 | } |
| 1171 | if Py_STATS: |
| 1172 | config['_pystats'] = True |
| 1173 | self.check_all_configs("test_init_python_env", config, preconfig, |
| 1174 | api=API_PYTHON) |
| 1175 | |
| 1176 | def test_init_env_dev_mode(self): |
| 1177 | preconfig = dict(allocator=PYMEM_ALLOCATOR_DEBUG) |
nothing calls this directly
no test coverage detected