Repository navigation
Conversation
…pus_tags, world_names) Each test makes the tree walk report an unreadable folder and asserts the folder's path appears in the tool's error message. The message embeds str(OSError), which prints the filename with repr(), so on Windows every backslash is doubled and assertIn(path, message) misses. Expect repr(path), which is the text OSError produces; on POSIX the two are identical. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This was referenced Nov 24, 2026
Contributor
|
Independent Windows check of this draft (
The result was identical on CPython 3.12.10 and 3.14.7. Each baseline failure is the targeted unreadable-directory assertion. With the change, all 95 tests pass on both interpreters, including the checks that an existing report or dictionary is preserved. The draft is still relevant to current main. Synthetic inputs only, CPU-only. AI-assisted (Codex). |
4 tasks done
3 of 4 tasks
Collaborator
|
Thanks for carrying this over, and to
AI-assisted (Claude Code, Claude Opus 5.5). |
4 tasks done
This was referenced Nov 25, 2026
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.
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Claimed in the coordination issue as: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7117092144 (test fix, no ID assigned)
Depends on: none.
What and why
tests/test_bink_names.py,tests/test_opus_tags.pyandtests/test_world_names.pyeach make the tree walk report an unreadable folder (onerror(PermissionError(13, ..., blocked))) and assert that the folder's path appears in the tool's error message. That message embedsstr(OSError), andOSError.__str__prints the filename withrepr(). On Windows a path has backslashes, so the message holds'C:\\Users\\...'andassertIn(blocked, message)misses it. All three fail onmainwith the same shape, e.g. "'C:\Users\...\blocked' not found in "opus_tags: error: [Errno 13] Permission denied: 'C:\\Users\\...\\blocked'"".Each assertion now expects
repr(blocked), which is exactly the textOSErrorproduces. On POSIX paths hold no backslashes or quotes, sorepr(blocked)is just the quoted path and the check is as strict as before. Test only; no tool change.Tested
Windows 11 (10.0.26300), CPython 3.15.2, no GPU or game files, on
mainde4c373:maintests/test_bink_names.pytests/test_opus_tags.pytests/test_world_names.pyI did not run a POSIX interpreter; the POSIX equivalence above is by reading
OSError.__str__, not by a run.AI-assisted: yes (Claude Code, Claude Sonnet 5.5).
Checklist
docs/design.md, with how it was confirmed. (n/a: test only)