Lines Matching +full:paths +full:- +full:ignore
100 print(f"--- {cmd} failed ---")
103 print(f"------")
115 # --- Pass 1 ---
121 # --- Pass 2 ---
124 interp_pat = (r"^interp (\d+) <(0x[\dA-F]+)>, "
125 r"thread state <(0x[\dA-F]+)>: "
132 if line == "--- Pass {} ---".format(numloops):
204 lines = [f"--- Pass {i} ---" for i in range(1, INIT_LOOPS+1)]
210 env = dict(os.environ, PYTHONIOENCODING="utf-8:surrogateescape")
216 expected_stream_encoding = "utf-8"
219 "--- Use defaults ---",
225 "--- Set errors only ---",
227 "Expected errors: ignore",
228 "stdin: {in_encoding}:ignore",
229 "stdout: {out_encoding}:ignore",
231 "--- Set encoding only ---",
232 "Expected encoding: iso8859-1",
234 "stdin: iso8859-1:{errors}",
235 "stdout: iso8859-1:{errors}",
236 "stderr: iso8859-1:backslashreplace",
237 "--- Set encoding and errors ---",
238 "Expected encoding: iso8859-1",
240 "stdin: iso8859-1:replace",
241 "stdout: iso8859-1:replace",
242 "stderr: iso8859-1:backslashreplace"])
253 Checks some key parts of the C-API that need to work before the runtime
285 bpo-20891: Calling PyGILState_Ensure in a non-Python thread must not
294 bpo-33932: Calling Py_Initialize() twice should do nothing (and not
303 bpo-34008: Calling Py_Main() after Py_Initialize() must not fail.
306 self.assertEqual(out.rstrip(), "Py_Main() after Py_Initialize: sys.argv=['-c', 'arg2']")
311 self.assertEqual(out.rstrip(), "Py_RunMain(): sys.argv=['-c', 'arg2']")
315 # bpo-40413: Calling Py_InitializeFromConfig()+Py_RunMain() multiple
319 self.assertEqual(out, "Py_RunMain(): sys.argv=['-c', 'arg2']\n" * nloop)
330 # Marker to ignore a configuration parameter
502 'isolated': -1,
503 'site_import': -1,
551 data = data.encode('utf-8')
556 # Use -S to not import the site module: get the proper configuration
557 # when test_embed is run from a venv (bpo-35313)
558 args = [sys.executable, '-S', '-c', code]
565 stdout = proc.stdout.decode('utf-8')
566 # ignore stderr
611 # UTF-8 Mode depends on the locale. There is no easy way
612 # to guess if UTF-8 Mode will be enabled or not if the locale
618 expected['filesystem_encoding'] = 'utf-8'
622 expected['stdio_encoding'] = 'utf-8'
647 paths = pythonpath_env.split(os.path.pathsep)
648 expected['module_search_paths'] = [*paths, *expected['module_search_paths']]
811 'stdio_encoding': 'iso8859-1',
816 'argv': ['-c', 'arg2'],
818 '-W', 'cmdline_warnoption',
819 '-X', 'cmdline_xoption',
820 '-c', 'pass',
876 'stdio_encoding': 'iso8859-1',
905 'stdio_encoding': 'iso8859-1',
945 # Pre-initialize implicitly using argv: make sure that -X dev
952 'orig_argv': ['python3', '-X', 'dev', 'script.py'],
963 # -X dev must be ignored by isolated preconfiguration
968 "-E", "-I",
969 "-X", "dev",
970 "-X", "utf8",
1049 'ignore:::cmdline_warnoption',
1050 'ignore:::sysadd_warnoption',
1051 'ignore:::config_warnoption',
1054 '-W', 'ignore:::cmdline_warnoption',
1055 '-X', 'cmdline_xoption'],
1063 'argv': ['-c', 'arg2'],
1064 'orig_argv': ['python3', '-c', code, 'arg2'],
1075 'argv': ['-c', 'arg2'],
1077 '-c', code,
1091 'argv': ['-c', 'arg1', '-v', 'arg3'],
1092 'orig_argv': ['./argv0', '-E', '-c', 'pass', 'arg1', '-v', 'arg3'],
1105 'argv': ['./argv0', '-E', '-c', 'pass', 'arg1', '-v', 'arg3'],
1106 'orig_argv': ['./argv0', '-E', '-c', 'pass', 'arg1', '-v', 'arg3'],
1131 paths = config['config']['module_search_paths']
1134 'module_search_paths': paths,
1141 env = {'TESTPATH': os.path.pathsep.join(paths)}
1150 paths = config['config']['module_search_paths']
1154 'module_search_paths': paths,
1164 env = {'TESTPATH': os.path.pathsep.join(paths)}
1184 f'python{ver.major}.{ver.minor}', 'lib-dynload'),
1191 # bpo-38234: On macOS and FreeBSD, the temporary directory
1224 paths = config['config']['module_search_paths']
1225 paths_str = os.path.pathsep.join(paths)
1227 for path in paths:
1234 self.fail(f"Unable to find home in {paths!r}")
1255 paths = all_configs['config']['module_search_paths']
1256 paths_str = os.path.pathsep.join(paths)
1266 # pybuilddir.txt is a sub-directory relative to the current
1277 module_search_paths[-1] = libdir
1301 'lib-dynload')
1312 print("include-system-site-packages = false", file=fp)
1314 paths = self.module_search_paths()
1316 paths[-1] = lib_dynload
1318 for index, path in enumerate(paths):
1320 paths[index] = os.path.join(tmpdir, os.path.basename(path))
1322 paths[index] = os.path.join(pyvenv_home, os.path.basename(path))
1323 paths[-1] = pyvenv_home
1332 'module_search_paths': paths,
1356 # - Py_GetExecPrefix()
1357 # - Py_GetPath()
1358 # - Py_GetPrefix()
1359 # - Py_GetProgramFullPath()
1360 # - Py_GetProgramName()
1361 # - Py_GetPythonHome()
1394 'ignore:::PyConfig_Insert0', # PyWideStringList_Insert(0)
1396 'ignore:::env1', # PYTHONWARNINGS env var
1397 'ignore:::env2', # PYTHONWARNINGS env var
1398 'ignore:::cmdline1', # -W opt command line option
1399 'ignore:::cmdline2', # -W opt command line option
1401 'ignore:::PySys_AddWarnOption1', # PySys_AddWarnOption()
1402 'ignore:::PySys_AddWarnOption2', # PySys_AddWarnOption()
1403 'ignore:::PyConfig_BeforeRead', # PyConfig.warnoptions
1404 'ignore:::PyConfig_AfterRead'] # PyWideStringList_Append()
1412 '-Wignore:::cmdline1',
1413 '-Wignore:::cmdline2'],
1429 # ignore output
1434 # bpo-42260: Test _PyInterpreterState_SetConfig()
1435 cmd = [sys.executable, '-I', '-m', 'test._test_embed_set_config']
1465 with open(startup, "w", encoding="utf-8") as f:
1478 with open(startup, "w", encoding="utf-8") as f:
1496 # bpo-42882: Test that _PyUnicode_FromId() works
1516 message = "unicode:\xe9-\u20ac-\udc80!\n"