mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:30:53 +01:00
[PR #2118] [CLOSED] corpus_watch: set errors='replace' on stdout like the other tools (TOOL-CORPUS-WATCH-STDOUT) #2122
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2122
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2118
Author: @kevincommits
Created: 11/25/2026
Status: ❌ Closed
Base:
main← Head:tool-corpus-watch-stdout📝 Commits (1)
5f8b70ffix: corpus_watch sets errors='replace' on stdout like the other tools📊 Changes
1 file changed (+4 additions, -0 deletions)
View changed files
📝
scripts/corpus_watch.py(+4 -0)📄 Description
Claimed in the coordination issue as: TOOL-CORPUS-WATCH-STDOUT (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7175070245)
What and why
scripts/corpus_watch.py(added in5ba7f354) runssys.exit(main())without theerrors="replace"stdout guard the other programs carry, sotests/test_tool_stdout_encoding.pylists it. This adds the same four-line guardtools/feature_scan.pyuses to its__main__block. Nothing else changes.The same test also lists
tools/compute_heap_layout_census.py,tools/game_run_summary.pyandtools/stage_timeline.pyonmain. Those are covered by #1561, #1673, #1789, #1837, #1866 and #2111, so this pull request leaves them alone and the test stays red until one of those merges.Tested
On macOS (Apple M5 Pro), Python 3.14.2, at
7b523287:python -I tests/test_tool_stdout_encoding.py: the missing list goes from four entries to three;scripts/corpus_watch.pyis no longer in it.python -I tests/test_corpus_watch.py: OK.python -I scripts/corpus_watch.py --help: prints usage.tests/test_*.pyunderpython -I: 509 run, 505 pass. The 4 that fail are the same 4 that fail onmainwithout this change (test_mod_pack_output_aliason macOS,test_runner_calls_all_tests,test_runtime_paths,test_tool_stdout_encoding), each with an open pull request.Not tested on Windows, where the guard matters.
GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.