mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:30:53 +01:00
[PR #2140] [CLOSED] tests: expect repr of unreadable paths in OSError messages (OLD-10046) #2145
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2145
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2140
Author: @whoalin1
Created: 11/25/2026
Status: ❌ Closed
Base:
main← Head:carry-old-10046-unreadable-path📝 Commits (1)
9beee15tests: expect the unreadable path as OSError prints it (bink_names, opus_tags, world_names)📊 Changes
3 files changed (+6 additions, -3 deletions)
View changed files
📝
tests/test_bink_names.py(+2 -1)📝
tests/test_opus_tags.py(+2 -1)📝
tests/test_world_names.py(+2 -1)📄 Description
Claimed in the coordination issue as: OLD-10046 (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7176740231)
What and why
Carries forward
old-pr/10046(draft #312, original commit authoricecreammule277-dotpreserved; indexed in #17), rebased cleanly onto currentmain(5fab93967).The unreadable-folder tests assert that the blocked path appears in the tool's error.
str(OSError)formats its filename withrepr(), so on Windows every backslash in the path is doubled andassertIn(blocked, message)fails even though the tool printed the right path. The assertions now look forrepr(blocked), the exact textstr(OSError)embeds; on POSIX this is the same path text.Only test expectations change; no tool behavior changes.
Tested
On Windows 11, Python 3.14, with the machine coordination lock held:
python -m compileall -q tests/test_bink_names.py tests/test_opus_tags.py tests/test_world_names.py— pass.python -I tests/test_bink_names.py— 36 tests, OK.python -I tests/test_opus_tags.py— 28 tests, OK.python -I tests/test_world_names.py— 31 tests, OK.No GPU, Vulkan SDK, or game data used. AI-assisted with Devin.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.