(self)
| 1378 | }) |
| 1379 | |
| 1380 | def test_init_setpath(self): |
| 1381 | # Test Py_SetPath() |
| 1382 | config = self._get_expected_config() |
| 1383 | paths = config['config']['module_search_paths'] |
| 1384 | |
| 1385 | config = { |
| 1386 | 'module_search_paths': paths, |
| 1387 | 'prefix': '', |
| 1388 | 'base_prefix': '', |
| 1389 | 'exec_prefix': '', |
| 1390 | 'base_exec_prefix': '', |
| 1391 | # The current getpath.c doesn't determine the stdlib dir |
| 1392 | # in this case. |
| 1393 | 'stdlib_dir': '', |
| 1394 | } |
| 1395 | self.default_program_name(config) |
| 1396 | env = {'TESTPATH': os.path.pathsep.join(paths)} |
| 1397 | |
| 1398 | self.check_all_configs("test_init_setpath", config, |
| 1399 | api=API_COMPAT, env=env, |
| 1400 | ignore_stderr=True) |
| 1401 | |
| 1402 | def test_init_setpath_config(self): |
| 1403 | # Test Py_SetPath() with PyConfig |
nothing calls this directly
no test coverage detected