cpython/Lib/test/libregrtest
Victor Stinner de5f8f7d13
gh-109276: libregrtest: use separated file for JSON (#109277)
libregrtest now uses a separated file descriptor to write test result
as JSON.  Previously, if a test wrote debug messages late around the
JSON, the main test process failed to parse JSON.

Rename TestResult.write_json() to TestResult.write_json_into().

worker_process() no longer writes an empty line at the end. There is
no need to separate test process output from the JSON output anymore,
since JSON is now written into a separated file descriptor.

create_worker_process() now always spawn the process with
close_fds=True.
2023-09-11 19:33:42 +02:00
..
__init__.py gh-109162: libregrtest: use relative imports (#109250) 2023-09-11 07:02:35 +00:00
cmdline.py gh-109162: libregrtest: add worker.py (#109229) 2023-09-11 01:11:22 +02:00
findtests.py gh-109162: libregrtest: move code around (#109253) 2023-09-11 08:52:03 +00:00
logger.py gh-109162: libregrtest: use relative imports (#109250) 2023-09-11 07:02:35 +00:00
main.py gh-109162: libregrtest: move code around (#109253) 2023-09-11 08:52:03 +00:00
pgo.py gh-109162: Refactor libregrtest.Regrtest (#109206) 2023-09-10 03:07:05 +02:00
refleak.py gh-109162: libregrtest: use relative imports (#109250) 2023-09-11 07:02:35 +00:00
result.py gh-109276: libregrtest: use separated file for JSON (#109277) 2023-09-11 19:33:42 +02:00
results.py gh-109162: libregrtest: use relative imports (#109250) 2023-09-11 07:02:35 +00:00
run_workers.py gh-109276: libregrtest: use separated file for JSON (#109277) 2023-09-11 19:33:42 +02:00
runtests.py gh-109276: libregrtest: use separated file for JSON (#109277) 2023-09-11 19:33:42 +02:00
save_env.py gh-109162: libregrtest: use relative imports (#109250) 2023-09-11 07:02:35 +00:00
setup.py gh-109162: libregrtest: use relative imports (#109250) 2023-09-11 07:02:35 +00:00
single.py gh-109276: libregrtest: use separated file for JSON (#109277) 2023-09-11 19:33:42 +02:00
utils.py gh-109162: libregrtest: move code around (#109253) 2023-09-11 08:52:03 +00:00
win_utils.py bpo-44336: Prevent tests hanging on child process handles on Windows (GH-26578) 2022-03-22 00:06:55 +00:00
worker.py gh-109276: libregrtest: use separated file for JSON (#109277) 2023-09-11 19:33:42 +02:00