• Home
  • Raw
  • Download

Lines Matching +full:paths +full:- +full:ignore

110             print(f"--- {cmd} failed ---")
113 print(f"------")
125 # --- Pass 1 ---
131 # --- Pass 2 ---
134 interp_pat = (r"^interp (\d+) <(0x[\dA-F]+)>, "
135 r"thread state <(0x[\dA-F]+)>: "
142 if line == "--- Pass {} ---".format(numloops):
214 lines = [f"--- Pass {i} ---" for i in range(1, INIT_LOOPS+1)]
220 env = dict(os.environ, PYTHONIOENCODING="utf-8:surrogateescape")
226 expected_stream_encoding = "utf-8"
229 "--- Use defaults ---",
235 "--- Set errors only ---",
237 "Expected errors: ignore",
238 "stdin: {in_encoding}:ignore",
239 "stdout: {out_encoding}:ignore",
241 "--- Set encoding only ---",
242 "Expected encoding: iso8859-1",
244 "stdin: iso8859-1:{errors}",
245 "stdout: iso8859-1:{errors}",
246 "stderr: iso8859-1:backslashreplace",
247 "--- Set encoding and errors ---",
248 "Expected encoding: iso8859-1",
250 "stdin: iso8859-1:replace",
251 "stdout: iso8859-1:replace",
252 "stderr: iso8859-1:backslashreplace"])
263 Checks some key parts of the C-API that need to work before the runtime
295 bpo-20891: Calling PyGILState_Ensure in a non-Python thread must not
304 bpo-33932: Calling Py_Initialize() twice should do nothing (and not
313 bpo-34008: Calling Py_Main() after Py_Initialize() must not fail.
316 self.assertEqual(out.rstrip(), "Py_Main() after Py_Initialize: sys.argv=['-c', 'arg2']")
321 self.assertEqual(out.rstrip(), "Py_RunMain(): sys.argv=['-c', 'arg2']")
325 # bpo-40413: Calling Py_InitializeFromConfig()+Py_RunMain() multiple
329 self.assertEqual(out, "Py_RunMain(): sys.argv=['-c', 'arg2']\n" * nloop)
333 # bpo-46417: Py_Finalize() clears structseq static types. Check that
336 # print() calls type->tp_repr(instance) and so checks that the types
339 with open(script, encoding="utf-8") as fp:
385 # bpo-47182: unicodeobject.c:ucnhash_capi was not reset on shutdown.
397 # Marker to ignore a configuration parameter
599 data = data.encode('utf-8')
604 # Use -S to not import the site module: get the proper configuration
605 # when test_embed is run from a venv (bpo-35313)
606 args = [sys.executable, '-S', '-c', code]
613 stdout = proc.stdout.decode('utf-8')
614 # ignore stderr
653 # UTF-8 Mode depends on the locale. There is no easy way
654 # to guess if UTF-8 Mode will be enabled or not if the locale
660 expected['filesystem_encoding'] = 'utf-8'
664 expected['stdio_encoding'] = 'utf-8'
689 paths = pythonpath_env.split(os.path.pathsep)
690 expected['module_search_paths'] = [*paths, *expected['module_search_paths']]
845 'stdio_encoding': 'iso8859-1',
850 'argv': ['-c', 'arg2'],
852 '-W', 'cmdline_warnoption',
853 '-X', 'cmdline_xoption',
854 '-c', 'pass',
912 'stdio_encoding': 'iso8859-1',
943 'stdio_encoding': 'iso8859-1',
984 # Pre-initialize implicitly using argv: make sure that -X dev
991 'orig_argv': ['python3', '-X', 'dev', '-P', 'script.py'],
1003 # -X dev must be ignored by isolated preconfiguration
1008 "-E", "-I", "-P",
1009 "-X", "dev",
1010 "-X", "utf8",
1095 'ignore:::cmdline_warnoption',
1096 'ignore:::sysadd_warnoption',
1097 'ignore:::config_warnoption',
1100 '-W', 'ignore:::cmdline_warnoption',
1101 '-X', 'cmdline_xoption'],
1109 'argv': ['-c', 'arg2'],
1110 'orig_argv': ['python3', '-c', code, 'arg2'],
1121 'argv': ['-c', 'arg2'],
1123 '-c', code,
1137 'argv': ['-c', 'arg1', '-v', 'arg3'],
1138 'orig_argv': ['./argv0', '-E', '-c', 'pass', 'arg1', '-v', 'arg3'],
1151 'argv': ['./argv0', '-E', '-c', 'pass', 'arg1', '-v', 'arg3'],
1152 'orig_argv': ['./argv0', '-E', '-c', 'pass', 'arg1', '-v', 'arg3'],
1177 paths = config['config']['module_search_paths']
1180 'module_search_paths': paths,
1190 env = {'TESTPATH': os.path.pathsep.join(paths)}
1199 paths = config['config']['module_search_paths']
1203 'module_search_paths': paths,
1217 env = {'TESTPATH': os.path.pathsep.join(paths)}
1237 f'python{ver.major}.{ver.minor}', 'lib-dynload'),
1244 # bpo-38234: On macOS and FreeBSD, the temporary directory
1271 paths = config['config']['module_search_paths']
1272 paths_str = os.path.pathsep.join(paths)
1274 for path in paths:
1281 self.fail(f"Unable to find home in {paths!r}")
1286 # Because we are specifying 'home', module search paths
1288 expected_paths = [paths[0], os.path.join(home, 'DLLs'), stdlib]
1310 # Test _Py_path_config._is_python_build configuration (gh-91985)
1312 paths = config['config']['module_search_paths']
1313 paths_str = os.path.pathsep.join(paths)
1315 for path in paths:
1322 self.fail(f"Unable to find home in {paths!r}")
1327 # Because we are specifying 'home', module search paths
1329 expected_paths = [paths[0], os.path.join(home, 'DLLs'), stdlib]
1371 paths = all_configs['config']['module_search_paths']
1372 paths_str = os.path.pathsep.join(paths)
1382 # pybuilddir.txt is a sub-directory relative to the current
1396 module_search_paths[-2] = stdlibdir
1397 module_search_paths[-1] = libdir
1433 … module_search_paths[-3] = os.path.join(tmpdir, os.path.basename(module_search_paths[-3]))
1434 module_search_paths[-2] = tmpdir
1435 module_search_paths[-1] = stdlibdir
1464 'lib-dynload')
1478 print("include-system-site-packages = false", file=fp)
1480 paths = self.module_search_paths()
1482 paths[-1] = lib_dynload
1484 paths = [
1485 os.path.join(tmpdir, os.path.basename(paths[0])),
1499 'module_search_paths': paths,
1520 # GetFullPathNameW() on startup, which (re-)normalizes the path overly.
1548 # - Py_GetExecPrefix()
1549 # - Py_GetPath()
1550 # - Py_GetPrefix()
1551 # - Py_GetProgramFullPath()
1552 # - Py_GetProgramName()
1553 # - Py_GetPythonHome()
1586 'ignore:::PyConfig_Insert0', # PyWideStringList_Insert(0)
1588 'ignore:::env1', # PYTHONWARNINGS env var
1589 'ignore:::env2', # PYTHONWARNINGS env var
1590 'ignore:::cmdline1', # -W opt command line option
1591 'ignore:::cmdline2', # -W opt command line option
1593 'ignore:::PySys_AddWarnOption1', # PySys_AddWarnOption()
1594 'ignore:::PySys_AddWarnOption2', # PySys_AddWarnOption()
1595 'ignore:::PyConfig_BeforeRead', # PyConfig.warnoptions
1596 'ignore:::PyConfig_AfterRead'] # PyWideStringList_Append()
1604 '-Wignore:::cmdline1',
1605 '-Wignore:::cmdline2'],
1621 # ignore output
1634 'argv': ['-c'],
1635 'orig_argv': ['./argv0', '-X', optval, '-c', 'pass'],
1650 # bpo-42260: Test _PyInterpreterState_SetConfig()
1652 cmd = [sys.executable, '-X', 'utf8', '-I', '-m', 'test._test_embed_set_config']
1656 encoding='utf-8', errors='backslashreplace')
1686 with open(startup, "w", encoding="utf-8") as f:
1699 with open(startup, "w", encoding="utf-8") as f:
1720 # bpo-42882: Test that _PyUnicode_FromId() works
1724 # See bpo-44133
1734 sys.argv ['./argv0', '-E', 'arg1', 'arg2']
1744 '-X showrefcount requires a Python debug build')
1746 # bpo-1635741: Python must release all memory at exit
1755 cmd = [sys.executable, "-I", "-X", "showrefcount", "-X", xopt, "-c", stmt]
1762 match = re.match(r'^\[(-?\d+) refs, (-?\d+) blocks\]', out)
1787 message = "unicode:\xe9-\u20ac-\udc80!\n"