[PR #948] [MERGED] native_pso_hashes: guard stdout like every other tool #986

Closed
opened 2026-11-26 20:19:42 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/948
Author: @barkodr
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @aslan2142

Base: main ← Head: fix/native-pso-stdout


📝 Commits (1)

  • 58263f6 native_pso_hashes: guard stdout like every other tool

📊 Changes

1 file changed (+4 additions, -0 deletions)

View changed files

📝 tools/native_pso_hashes.py (+4 -0)

📄 Description

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.py was the only tool whose __main__ block did not set errors="replace" on stdout, so tests/test_tool_stdout_encoding.py failed on main. 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.py and tests/test_docs_python_deps.py all pass on both. test_tool_stdout_encoding.py fails on main with only tools/native_pso_hashes.py listed and passes on this branch.

GPUs tested: none (no GPU code changed)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/948 **Author:** [@barkodr](https://github.com/barkodr) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `fix/native-pso-stdout` --- ### 📝 Commits (1) - [`58263f6`](https://github.com/ubiquitarianism/leonida/commit/58263f612c6dbce93f6f3645f535d8c7455b6157) native_pso_hashes: guard stdout like every other tool ### 📊 Changes **1 file changed** (+4 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `tools/native_pso_hashes.py` (+4 -0) </details> ### 📄 Description 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.py` was the only tool whose `__main__` block did not set `errors="replace"` on stdout, so `tests/test_tool_stdout_encoding.py` failed on `main`. 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.py` and `tests/test_docs_python_deps.py` all pass on both. `test_tool_stdout_encoding.py` fails on `main` with only `tools/native_pso_hashes.py` listed and passes on this branch. GPUs tested: none (no GPU code changed) AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:19:42 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#986
No description provided.