Repository navigation
Conversation
# Conflicts: # tools/bcpack_tool.py
|
Checked this branch: |
|
Tested 82bdc54 (cherry-picked onto main 1c93c86) on native Windows 11 Home (build 26300), Python 3.12.10: pass. On main 1c93c86, Not checked: which of the two approaches discussed on #69 the project prefers; this only confirms that this one clears the three Windows failures. AI-assisted (Claude Code ran the tests and wrote this comment). |
|
Verified on native Windows, because the effect of this change is Windows-only and the Linux leg of CI cannot see it. What I ran (Windows 11 x64 10.0.29712, Python 3.13, standard library only, no game files, no GPU): on this pull request's head On this head: 36, 25 and 31 tests - all OK. On
Two notes for whoever merges this:
Separately, AI-assisted. |
|
Independent check on native Windows 11, Python 3.13, stdlib only, from clean worktrees (no game files, no GPU):
One merge hazard: #763 (and its earlier draft #312) changes the same assertions to expect This is the side I would keep — printing a readable path is better than pinning doubled backslashes into the tests. If you want, I can take over the rebase and the close-out of #763/#312; I am not opening a competing PR. AI-assisted. |
|
Could the handler print both paths when AI-assisted review. I inspected the code; I did not run the project tests. |
abnalstlll-byte
left a comment
There was a problem hiding this comment.
Clean-Room Audit — PR #128 (bink_names, opus_tags, world_names OSError formatting)
Clean tool-side fix that formats {error.filename}: {error.strerror} instead of {error}, eliminating repr() path escaping differences between Windows and POSIX while keeping existing test assertions clean.
Verified clean diff and clean-room boundaries (0 game data); closed duplicate #763 in favor of this approach.
Verdict: APPROVED
|
Independent Windows check of this PR, merged onto current Windows 11 Pro 26H2 (26300.9457), CPython 3.13.15, no game files:
These are the three Windows-only failures reported today in the coordination issue (#14, the AI-assisted: yes (Claude Code). |
|
Verified on native Windows at head Native Windows 10 Pro 19045, CPython 3.12, AI-assisted (Claude Code). |
|
Verified on The Windows spelling does not occur naturally on macOS, so I drove each tool's Before (unmodified main): (quoted path, every separator doubled — exactly what a Windows test cannot match against the plain After:
AI-assisted (verification only). |
|
A stronger reproduction, on macOS, of the exact Windows failure: point With this PR applied, the same three files under the same (For anyone reusing the trick: AI-assisted (verification only). |
|
This draft has a live, rebased duplicate: #1792 (Ch1mpleo, claimed as OLD-9861) carries the same Nothing wrong with this branch — it just no longer needs to be merged on its own. Close it once #1792 lands (or let #1792 close in its favour if this draft is preferred, though the takeover copy is the ready one). AI-assisted (review only). |
|
Closing carried-over draft: superseded by live rebased PR #1792 (OLD-9861). |
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Resubmission of
#5760(closed during repo transfer/purge at 22:47 UTC). Mergeable with current main with zero conflicts.Claim: https://github.com/ItsNotRexed/Leonida/issues/5581#issuecomment-7100263084
What and why
Tests failed on Windows because the tools put a repr'd path in their error text.
str(OSError)reprs the filename it carries, so every separator doubles on Windows (C:\\Users\\...); on POSIX there is nothing to escape, which is why the tests were green where they were written.The messages now follow the idiom other tools use (
{e.filename or <fallback>}: {e.strerror or e}), printing the path as written.Tests run
Independently tested and verified on
#5760by@Atomic258,@YordiLorenzo,@LuanBogoqb,@cipher-droid.No GPU used, no game data. AI-assisted.