diff options
author | Victor Stinner <vstinner@python.org> | 2023-09-11 17:33:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-11 17:33:42 (GMT) |
commit | de5f8f7d13c0bbc723eaea83284dc78b37be54b4 (patch) | |
tree | 1055e0399f756e089e16418a195947a43f39fdca /Misc/NEWS.d/next | |
parent | baa6dc8e388e71b2a00347143ecefb2ad3a8e53b (diff) | |
download | cpython-de5f8f7d13c0bbc723eaea83284dc78b37be54b4.zip cpython-de5f8f7d13c0bbc723eaea83284dc78b37be54b4.tar.gz cpython-de5f8f7d13c0bbc723eaea83284dc78b37be54b4.tar.bz2 |
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.
Diffstat (limited to 'Misc/NEWS.d/next')
-rw-r--r-- | Misc/NEWS.d/next/Tests/2023-09-11-18-19-52.gh-issue-109276.btfFtT.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2023-09-11-18-19-52.gh-issue-109276.btfFtT.rst b/Misc/NEWS.d/next/Tests/2023-09-11-18-19-52.gh-issue-109276.btfFtT.rst new file mode 100644 index 0000000..5fcf662 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2023-09-11-18-19-52.gh-issue-109276.btfFtT.rst @@ -0,0 +1,3 @@ +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. Patch by Victor Stinner. |