native_pso_hashes: guard stdout like every other tool #948
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!948
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/948/head"
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?
@barkodr on GitHub · 2026-11-24 15:37 UTC · original
barkodr:fix/native-pso-stdout→main· +4 −0 · 1 files · 1 commits · merged 2026-11-24 17:05 UTCClaimed 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's116de82f6already 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.@Poussistar on GitHub · 2026-11-24 15:58 UTC · original
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.