[PR #2140] [CLOSED] tests: expect repr of unreadable paths in OSError messages (OLD-10046) #2145

Closed
opened 2026-11-26 21:20:11 +01:00 by 4ld0 · 0 comments
Owner

📋 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)

  • 9beee15 tests: 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 author icecreammule277-dot preserved; indexed in #17), rebased cleanly onto current main (5fab93967).

The unreadable-folder tests assert that the blocked path appears in the tool's error. str(OSError) formats its filename with repr(), so on Windows every backslash in the path is doubled and assertIn(blocked, message) fails even though the tool printed the right path. The assertions now look for repr(blocked), the exact text str(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.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2140 **Author:** [@whoalin1](https://github.com/whoalin1) **Created:** 11/25/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `carry-old-10046-unreadable-path` --- ### 📝 Commits (1) - [`9beee15`](https://github.com/ubiquitarianism/leonida/commit/9beee15b68bc5afb405a78791aab82ea497a6a3c) tests: expect the unreadable path as OSError prints it (bink_names, opus_tags, world_names) ### 📊 Changes **3 files changed** (+6 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_bink_names.py` (+2 -1) 📝 `tests/test_opus_tags.py` (+2 -1) 📝 `tests/test_world_names.py` (+2 -1) </details> ### 📄 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 author `icecreammule277-dot` preserved; indexed in #17), rebased cleanly onto current `main` (`5fab93967`). The unreadable-folder tests assert that the blocked path appears in the tool's error. `str(OSError)` formats its filename with `repr()`, so on Windows every backslash in the path is doubled and `assertIn(blocked, message)` fails even though the tool printed the right path. The assertions now look for `repr(blocked)`, the exact text `str(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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 21:20:12 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#2145
No description provided.