(self)
| 1032 | api=API_COMPAT) |
| 1033 | |
| 1034 | def test_init_from_config(self): |
| 1035 | preconfig = { |
| 1036 | 'allocator': ALLOCATOR_FOR_CONFIG, |
| 1037 | 'utf8_mode': True, |
| 1038 | } |
| 1039 | config = { |
| 1040 | 'install_signal_handlers': False, |
| 1041 | 'use_hash_seed': True, |
| 1042 | 'hash_seed': 123, |
| 1043 | 'tracemalloc': 2, |
| 1044 | 'perf_profiling': 0, |
| 1045 | 'import_time': 2, |
| 1046 | 'code_debug_ranges': False, |
| 1047 | 'show_ref_count': True, |
| 1048 | 'malloc_stats': True, |
| 1049 | 'pymalloc_hugepages': True, |
| 1050 | |
| 1051 | 'stdio_encoding': 'iso8859-1', |
| 1052 | 'stdio_errors': 'replace', |
| 1053 | |
| 1054 | 'pycache_prefix': 'conf_pycache_prefix', |
| 1055 | 'program_name': './conf_program_name', |
| 1056 | 'argv': ['-c', 'arg2'], |
| 1057 | 'orig_argv': ['python3', |
| 1058 | '-W', 'cmdline_warnoption', |
| 1059 | '-X', 'cmdline_xoption', |
| 1060 | '-c', 'pass', |
| 1061 | 'arg2'], |
| 1062 | 'parse_argv': True, |
| 1063 | 'xoptions': { |
| 1064 | 'config_xoption1': '3', |
| 1065 | 'config_xoption2': '', |
| 1066 | 'config_xoption3': True, |
| 1067 | 'cmdline_xoption': True, |
| 1068 | }, |
| 1069 | 'warnoptions': [ |
| 1070 | 'cmdline_warnoption', |
| 1071 | 'default::BytesWarning', |
| 1072 | 'config_warnoption', |
| 1073 | ], |
| 1074 | 'run_command': 'pass\n', |
| 1075 | |
| 1076 | 'site_import': False, |
| 1077 | 'bytes_warning': 1, |
| 1078 | 'inspect': True, |
| 1079 | 'interactive': True, |
| 1080 | 'optimization_level': 2, |
| 1081 | 'write_bytecode': False, |
| 1082 | 'verbose': 1, |
| 1083 | 'quiet': True, |
| 1084 | 'remote_debug': True, |
| 1085 | 'configure_c_stdio': True, |
| 1086 | 'buffered_stdio': False, |
| 1087 | 'user_site_directory': False, |
| 1088 | 'faulthandler': True, |
| 1089 | 'platlibdir': 'my_platlibdir', |
| 1090 | 'module_search_paths': self.IGNORE_CONFIG, |
| 1091 | 'safe_path': True, |
nothing calls this directly
no test coverage detected