[PR #884] [CLOSED] tests: guest scene launch-failure test tolerates a localized OS error on stdout (TEST-GUEST-SCENE-LOCALE) #921

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/884
Author: @Luna-OS
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: fix/guest-scene-test-locale


📝 Commits (1)

  • 700d6b4 tests: guest scene launch-failure test tolerates a localized OS error on stdout (TEST-GUEST-SCENE-LOCALE)

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 tests/test_guest_scene_reference.py (+2 -1)

📄 Description

Claimed in the coordination issue as: TEST-GUEST-SCENE-LOCALE (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135144377)

What and why

tests/test_guest_scene_reference.py::test_launch_failure_preserves_run_record_and_logs errors on a non-English Windows:

TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

scripts/run_guest_scene.py prints the OSError from launching the synthetic non-executable, and on a German Windows that text (WinError 216, with ü/ß) reaches stdout in the ANSI code page (cp1252). The test decoded stdout as strict UTF-8, so the reader thread failed and result.stdout became None. The neighbouring test in the same file already passes errors="replace"; this one now does the same. The runner itself was fine: exit 1, report.json and logs/full.json are written as the test expects.

Tested

On Windows 11 (de-DE locale), Python 3.13.7, no game files: python -I tests/test_guest_scene_reference.py, 6 OK (was 1 error).

GPUs tested: n/a

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly.
  • One topic.
  • No game data, keys or decryption.
  • No translator rule changed.

🤖 Generated with Claude Code


🔄 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/884 **Author:** [@Luna-OS](https://github.com/Luna-OS) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/guest-scene-test-locale` --- ### 📝 Commits (1) - [`700d6b4`](https://github.com/ubiquitarianism/leonida/commit/700d6b4cbda0c45ae142cde40bce1cbedac2d7bc) tests: guest scene launch-failure test tolerates a localized OS error on stdout (TEST-GUEST-SCENE-LOCALE) ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_guest_scene_reference.py` (+2 -1) </details> ### 📄 Description Claimed in the coordination issue as: TEST-GUEST-SCENE-LOCALE (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7135144377) ### What and why `tests/test_guest_scene_reference.py::test_launch_failure_preserves_run_record_and_logs` errors on a non-English Windows: ``` TypeError: unsupported operand type(s) for +: 'NoneType' and 'str' ``` `scripts/run_guest_scene.py` prints the `OSError` from launching the synthetic non-executable, and on a German Windows that text (`WinError 216`, with `ü`/`ß`) reaches stdout in the ANSI code page (cp1252). The test decoded stdout as strict UTF-8, so the reader thread failed and `result.stdout` became `None`. The neighbouring test in the same file already passes `errors="replace"`; this one now does the same. The runner itself was fine: exit 1, `report.json` and `logs/full.json` are written as the test expects. ### Tested On Windows 11 (de-DE locale), Python 3.13.7, no game files: `python -I tests/test_guest_scene_reference.py`, 6 OK (was 1 error). GPUs tested: n/a AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic. - [x] No game data, keys or decryption. - [x] No translator rule changed. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <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:30 +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#921
No description provided.