native_pso_hashes: guard stdout like every other tool #948
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!948
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/native-pso-stdout"
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 successfully merged and closed
Claimed in the coordination issue as: claiming: tools/native_pso_hashes.py has no stdout errors="replace" guard (added in 62a9588), so test_tool_stdout_encoding fails on main. Tools only. AI-assisted.
What and why
tools/native_pso_hashes.pywas the only tool whose__main__block did not seterrors="replace"on stdout, sotests/test_tool_stdout_encoding.pyfailed onmain. It now starts its__main__block with the same guard as the other tools. Bram's 116de82f6 already fixed--help, so this pull request is only the stdout guard.Tested
On macOS 26.6.2 with Python 3.12.16 and on Ubuntu 26.04 (WSL2) with Python 3.14.4, from the checkout root with
python -I:tests/test_native_pso_hashes.py,tests/test_tool_stdout_encoding.py,tests/test_tool_startup.py,tests/test_text_write_line_endings.pyandtests/test_docs_python_deps.pyall pass on both.test_tool_stdout_encoding.pyfails onmainwith onlytools/native_pso_hashes.pylisted and passes on this branch.GPUs tested: none (no GPU code changed)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.Independent check on Linux (4 vCPU, CPython 3.14.7): the diff applied to a clean worktree at
maina28927849.python -I tests/test_tool_stdout_encoding.py→First extra element 0: 'tools/native_pso_hashes.py',Ran 4 tests … FAILED (failures=1)Ran 4 tests in 0.341s … OKtools/native_pso_hashes.pyis the only program that guard still lists, so this pull request turns that repository-wide red green.tests/test_native_pso_hashes.pyandtests/test_text_write_line_endings.pyalso pass at this head. No game files, no GPU needed.