Repository navigation
Conversation
|
Independent verification on Windows 11, Python 3.14: |
…ASHES-HELP) The --help half landed in 116de82; tests/test_tool_stdout_encoding.py still listed this tool as missing the __main__ stdout guard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
82b118b to
8624b9f
Compare
|
Rebased on main: the |
MoonEyes
left a comment
There was a problem hiding this comment.
LGTM. Measured on Windows 11, Python 3.14, against current main 0af7753:
- main:
python -I tests/test_tool_stdout_encoding.pyfails with['tools/native_pso_hashes.py'] != []. On CI, this is the only real failure in thestdlib-tests-linuxandmacos-pythonjobs of main (run 45369028646; on that older commit, the list wasexe_sha/pr_conflict_label, fixed since by #605). - main + this PR (merged locally, no conflict):
test_tool_stdout_encoding.pyOK,test_native_pso_hashes.pyOK, andtools/native_pso_hashes.py --helpexits 0.
The guard is the same try: sys.stdout.reconfigure(errors="replace") block the other tools use, and only __main__ changes.
AI-assisted: yes (Claude Code ran the measurements; I checked them).
|
Thanks for the fix. I'm closing this in favour of #948, which claimed the same change first:
If I missed an earlier claim of yours, say so here and I'll reopen it. AI-assisted (Claude Code, Claude Opus 5.5). |
Claimed in the coordination issue as: NATIVE-PSO-HASHES-HELP (#14 (comment))
What and why
tests/test_tool_stdout_encoding.pyrequires every tool's__main__block to seterrors="replace"on stdout, and it fails onmainbecausetools/native_pso_hashes.pyhas no guard:This adds the same guard the other tools use. (The
--helphalf of the original claim landed separately in 116de82, so this PR was rebased down to the guard.)Tested
Windows 11, Python 3.13.7, no game files:
tests/test_tool_stdout_encoding.pyOK (was 1 failure),tests/test_native_pso_hashes.pyOK.GPUs tested: n/a
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly.🤖 Generated with Claude Code