mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 23:05:53 +01:00
[PR #763] [CLOSED] tests: expect the unreadable path as OSError prints it (bink_names, opus_tags, world_names) (OLD-10046) #801
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#801
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/763
Author: @abnalstlll-byte
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:restore/old-10046-tests-oserror-repr📝 Commits (1)
e04c421tests: 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
Carries old PR 10046 (draft #312, old-pr/10046 by @icecreammule277-dot), rebased cleanly on current main (
2d73c242f).What this does
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 exact text OSError produces on Windows while remaining identical on POSIX.
Verification
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.