Repository navigation
Conversation
OSError.__str__ formats the filename with %r, so on Windows every backslash
is doubled: the message holds C:\\Users\\... where the tempfile path is
C:\Users\.... three tests asserted the raw path with assertIn and failed on
Windows only ('not found in "ERROR: [Errno 13] Permission denied:
C:\\\\Users..."'), which is how the check job keeps three files red.
This was referenced Nov 24, 2026
1 of 2 tasks
Contributor
Author
|
Closing in favour of a decision between the two preserved approaches to the same three failing assertions:
They conflict: if #128 lands, the messages lose the doubled backslashes and the tests have to keep asserting the raw path, so merging both would leave one side wrong. Whoever merges #128 should just drop this; if 10046 is preferred instead, this is the same change. |
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.
Claimed in the coordination issue as: none — the original project's coordination issue was lost with its repository, and this repository's issue index (#18) has no entry for these. No open pull request touches these three files.
Depends on: none.
What and why
The Windows
checkjob collects every failing file, and three of them fail for one reason:OSError.__str__prints the filename with%r, so on Windows each backslash in the message is doubled.The same assertion in
tests/test_world_names.py:49andtests/test_opus_tags.py:337fails the same way. On POSIX there is nothing to escape, which is why these only fail on Windows. The tests now comparerepr(blocked), which is exactly what the tool prints — the product's message is Python's own and is right.Tested
macOS 15 arm64 (Apple M3 Pro), CPython 3.15.2; no game files.
OKhere, before and after (the escaping only happens on Windows).PermissionErrorfrom a Windows path:blocked in message→False,repr(blocked) in message→True.checkjob log quoted above (9ec34cdff, run 45306800350, job 138157329747) — I have no Windows host to re-run it on.compileallclean,check_no_game_data.pyclean. Not run: Windows, any GPU test.AI-assisted: yes.
Checklist
docs/design.md, with how it was confirmed. (Not applicable: test-only.)