• Home
  • Raw
  • Download

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

124             print(f"--- {cmd} failed ---")
127 print("------")
139 # --- Pass 1 ---
145 # --- Pass 2 ---
148 interp_pat = (r"^interp (\d+) <(0x[\dA-F]+)>, "
149 r"thread state <(0x[\dA-F]+)>: "
156 if line == "--- Pass {} ---".format(numloops):
172 # 5 lines per pass is super-spammy, so limit that to -vvv
229 lines = [f"--- Pass {i} ---" for i in range(1, INIT_LOOPS+1)]
235 env = dict(os.environ, PYTHONIOENCODING="utf-8:surrogateescape")
241 expected_stream_encoding = "utf-8"
244 "--- Use defaults ---",
250 "--- Set errors only ---",
252 "Expected errors: ignore",
253 "stdin: {in_encoding}:ignore",
254 "stdout: {out_encoding}:ignore",
256 "--- Set encoding only ---",
257 "Expected encoding: iso8859-1",
259 "stdin: iso8859-1:{errors}",
260 "stdout: iso8859-1:{errors}",
261 "stderr: iso8859-1:backslashreplace",
262 "--- Set encoding and errors ---",
263 "Expected encoding: iso8859-1",
265 "stdin: iso8859-1:replace",
266 "stdout: iso8859-1:replace",
267 "stderr: iso8859-1:backslashreplace"])
278 Checks some key parts of the C-API that need to work before the runtime
318 bpo-20891: Calling PyGILState_Ensure in a non-Python thread must not
327 bpo-33932: Calling Py_Initialize() twice should do nothing (and not
336 bpo-34008: Calling Py_Main() after Py_Initialize() must not fail.
339 self.assertEqual(out.rstrip(), "Py_Main() after Py_Initialize: sys.argv=['-c', 'arg2']")
344 self.assertEqual(out.rstrip(), "Py_RunMain(): sys.argv=['-c', 'arg2']")
348 # bpo-40413: Calling Py_InitializeFromConfig()+Py_RunMain() multiple
352 self.assertEqual(out, "Py_RunMain(): sys.argv=['-c', 'arg2']\n" * nloop)
356 # bpo-46417: Py_Finalize() clears structseq static types. Check that
359 # print() calls type->tp_repr(instance) and so checks that the types
362 with open(script, encoding="utf-8") as fp:
397 # "copy" the code to un-specialize it:
414 # bpo-47182: unicodeobject.c:ucnhash_capi was not reset on shutdown.
422 "d = datetime.datetime.strptime('2000-01-01', '%Y-%m-%d');"
459 results = err.split('--- Loop #')[1:]
460 results = [res.rpartition(' ---\n')[-1] for res in results]
504 # Marker to ignore a configuration parameter
552 'cpu_count': -1,
625 CONFIG_COMPAT['enable_gil'] = -1
717 data = data.encode('utf-8')
722 # Use -S to not import the site module: get the proper configuration
723 # when test_embed is run from a venv (bpo-35313)
724 args = [sys.executable, '-S', '-c', code]
731 stdout = proc.stdout.decode('utf-8')
732 # ignore stderr
771 # UTF-8 Mode depends on the locale. There is no easy way
772 # to guess if UTF-8 Mode will be enabled or not if the locale
778 expected['filesystem_encoding'] = 'utf-8'
782 expected['stdio_encoding'] = 'utf-8'
807 paths = pythonpath_env.split(os.path.pathsep)
808 expected['module_search_paths'] = [*paths, *expected['module_search_paths']]
967 'stdio_encoding': 'iso8859-1',
972 'argv': ['-c', 'arg2'],
974 '-W', 'cmdline_warnoption',
975 '-X', 'cmdline_xoption',
976 '-c', 'pass',
1037 'stdio_encoding': 'iso8859-1',
1072 'stdio_encoding': 'iso8859-1',
1116 # Pre-initialize implicitly using argv: make sure that -X dev
1123 'orig_argv': ['python3', '-X', 'dev', '-P', 'script.py'],
1135 # -X dev must be ignored by isolated preconfiguration
1140 "-E", "-I", "-P",
1141 "-X", "dev",
1142 "-X", "utf8",
1227 'ignore:::cmdline_warnoption',
1228 'ignore:::sysadd_warnoption',
1229 'ignore:::config_warnoption',
1232 '-W', 'ignore:::cmdline_warnoption',
1233 '-X', 'cmdline_xoption'],
1241 'argv': ['-c', 'arg2'],
1242 'orig_argv': ['python3', '-c', code, 'arg2'],
1254 'argv': ['-c', 'arg2'],
1256 '-c', code,
1271 'argv': ['-c', 'arg1', '-v', 'arg3'],
1272 'orig_argv': ['./argv0', '-E', '-c', 'pass', 'arg1', '-v', 'arg3'],
1285 'argv': ['./argv0', '-E', '-c', 'pass', 'arg1', '-v', 'arg3'],
1286 'orig_argv': ['./argv0', '-E', '-c', 'pass', 'arg1', '-v', 'arg3'],
1311 paths = config['config']['module_search_paths']
1314 'module_search_paths': paths,
1324 env = {'TESTPATH': os.path.pathsep.join(paths)}
1333 paths = config['config']['module_search_paths']
1337 'module_search_paths': paths,
1351 env = {'TESTPATH': os.path.pathsep.join(paths)}
1371 f'python{ver.major}.{ver.minor}{ABI_THREAD}', 'lib-dynload'),
1378 # bpo-38234: On macOS and FreeBSD, the temporary directory
1405 paths = config['config']['module_search_paths']
1406 paths_str = os.path.pathsep.join(paths)
1408 for path in paths:
1415 self.fail(f"Unable to find home in {paths!r}")
1420 # Because we are specifying 'home', module search paths
1422 expected_paths = [paths[0], os.path.join(home, 'DLLs'), stdlib]
1444 # Test _Py_path_config._is_python_build configuration (gh-91985)
1446 paths = config['config']['module_search_paths']
1447 paths_str = os.path.pathsep.join(paths)
1449 for path in paths:
1456 self.fail(f"Unable to find home in {paths!r}")
1461 # Because we are specifying 'home', module search paths
1463 expected_paths = [paths[0], os.path.join(home, 'DLLs'), stdlib]
1505 paths = all_configs['config']['module_search_paths']
1506 paths_str = os.path.pathsep.join(paths)
1516 # pybuilddir.txt is a sub-directory relative to the current
1530 module_search_paths[-2] = stdlibdir
1531 module_search_paths[-1] = libdir
1567 … module_search_paths[-3] = os.path.join(tmpdir, os.path.basename(module_search_paths[-3]))
1568 module_search_paths[-2] = tmpdir
1569 module_search_paths[-1] = stdlibdir
1598 'lib-dynload')
1612 print("include-system-site-packages = false", file=fp)
1614 paths = self.module_search_paths()
1616 paths[-1] = lib_dynload
1618 paths = [
1619 os.path.join(tmpdir, os.path.basename(paths[0])),
1633 'module_search_paths': paths,
1654 # GetFullPathNameW() on startup, which (re-)normalizes the path overly.
1682 # - Py_GetExecPrefix()
1683 # - Py_GetPath()
1684 # - Py_GetPrefix()
1685 # - Py_GetProgramFullPath()
1686 # - Py_GetProgramName()
1687 # - Py_GetPythonHome()
1719 'ignore:::PyConfig_Insert0', # PyWideStringList_Insert(0)
1721 'ignore:::env1', # PYTHONWARNINGS env var
1722 'ignore:::env2', # PYTHONWARNINGS env var
1723 'ignore:::cmdline1', # -W opt command line option
1724 'ignore:::cmdline2', # -W opt command line option
1726 'ignore:::PySys_AddWarnOption1', # PySys_AddWarnOption()
1727 'ignore:::PySys_AddWarnOption2', # PySys_AddWarnOption()
1728 'ignore:::PyConfig_BeforeRead', # PyConfig.warnoptions
1729 'ignore:::PyConfig_AfterRead'] # PyWideStringList_Append()
1737 '-Wignore:::cmdline1',
1738 '-Wignore:::cmdline2'],
1754 # ignore output
1767 'argv': ['-c'],
1768 'orig_argv': ['./argv0', '-X', optval, '-c', 'pass'],
1806 # gh-123022: Check that running Py_Initialize() in a background
1814 # bpo-42260: Test _PyInterpreterState_SetConfig()
1816 cmd = [sys.executable, '-X', 'utf8', '-I', '-m', 'test._test_embed_set_config']
1820 encoding='utf-8', errors='backslashreplace')
1853 with open(startup, "w", encoding="utf-8") as f:
1866 with open(startup, "w", encoding="utf-8") as f:
1887 # bpo-42882: Test that _PyUnicode_FromId() works
1891 # See bpo-44133
1902 sys.argv ['./argv0', '-E', 'arg1', 'arg2']
1912 '-X showrefcount requires a Python debug build')
1914 # bpo-1635741: Python must release all memory at exit
1923 cmd = [sys.executable, "-I", "-X", "showrefcount", "-X", xopt, "-c", stmt]
1930 match = re.match(r'^\[(-?\d+) refs, (-?\d+) blocks\]', out)
1940 '-X presite requires a Python debug build')
1942 cmd = [sys.executable, "-I", "-X", "presite=test.reperf", "-c", "print('cmd')"]
1971 message = "unicode:\xe9-\u20ac-\udc80!\n"