Repository navigation
test(windows): decode starter output with errors=replace (OEM code page) - #26
Merged
Merged
Conversation
…page) Unter einem deutschen Windows gibt `pause` in cmd.exe seinen Hinweis in der OEM-Codepage aus (cp850, „Drücken“ → 0x81). Der Test hat stdout als strenges UTF-8 dekodiert. Dabei ist der Lesethread von subprocess mit UnicodeDecodeError abgebrochen, communicate() lieferte stdout=None, und `"foreground" in stdout` warf „TypeError: argument of type 'NoneType' is not iterable“. Der Starter selbst war in Ordnung. Auf Linux-CI wird die Datei übersprungen (skipif os.name != "nt"). Fix: In beiden Aufrufen `errors="replace"` setzen. Geprüft werden nur ASCII-Marken („foreground“, Exitcode). Lokal unter Windows (ASUS-GEI, deutsche Codepage): - tests/test_multibot_windows.py vorher 2 failed, 3 passed, nachher 5 passed. - ruff format --check und ruff check sind sauber. T-20261130-910132249 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01THB2EzGbmyMB2S1P43LDZb
Contributor
Author
|
Zweitprüfung (unabhängige Instanz, nicht der Autor): steht. Belege (Windows, deutsche OEM-Codepage, Head 6481434):
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
tests/test_multibot_windows.py::test_success_and_failure_wait_for_key_then_keep_exitcode[0|23]schlägt unter einem deutschen Windows fehl mitTypeError: argument of type 'NoneType' is not iterable, auch auf main 4e6dc32. Gefunden hat das die Zweitprüfung von #25.Ursache:
pausein cmd.exe gibt seinen Hinweis in der OEM-Codepage aus (cp850, „Drücken“ wird zu 0x81).UnicodeDecodeError, undcommunicate()liefertstdout=None.Am Starter selbst liegt es nicht. Auf der Linux-CI wird die Datei übersprungen.
Fix
errors="replace"in beiden Subprozess-Aufrufen. Die Prüfungen vergleichen nur ASCII-Marken und den Exitcode.Belege
ruff format --checkundruff checksind sauber.Ticket: T-20261130-910132249
🤖 Generated with Claude Code
https://claude.ai/code/session_01THB2EzGbmyMB2S1P43LDZb