[PR #23] [MERGED] tests: compare the guest-scene record with the loader path the runner resolves #75

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/23
Author: @wavehs
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/24/2026
Merged by: @ubiquitarianism

Base: main ← Head: test-guest-scene-record-realpath


📝 Commits (2)

  • 82b46db tests: compare the guest-scene record with the loader path the runner resolves
  • 0d927e5 tests: resolve the unicode-path case's report path too

📊 Changes

1 file changed (+7 additions, -2 deletions)

View changed files

📝 tests/test_guest_scene_reference.py (+7 -2)

📄 Description

Claimed in the coordination issue as: none — the original project's coordination issue was lost with its repository, and this repository has no such issue yet. No open pull request touches tests/test_guest_scene_reference.py.

Depends on: none.

What and why

tests/test_guest_scene_reference.py fails its launch-failure case on macOS (test_guest_scene_reference.py:120, 1 failed), which is one of the two red files in the standard-library loop:

AssertionError: '/private/var/folders/.../invalid.exe' != '/var/folders/.../invalid.exe'

scripts/run_guest_scene.py:348 resolves --loader, --guest and --shaders before it starts, so the run record deliberately holds the physical path. tempfile hands out /var/folders/... on macOS, which is a symlink to /private/var/folders/..., so the expectation has to be resolved too. The assertion now compares with str(bad_loader.resolve()); nothing else in the test changes, and on Linux and Windows resolve() is a no-op there.

Test file only; no tool code.

Tested

main@9ec34cdff, macOS 15 arm64 (Apple M3 Pro), CPython 3.15.2, CPU only, no game files:

tree tests/test_guest_scene_reference.py
main@9ec34cdff FAILED (failures=1) — the diff above
this commit Ran 6 tests ... OK

tests/test_dev_guest_scene.py also OK, compileall clean, check_no_game_data.py clean. Not run: Windows, real Linux, any GPU test, the translator suite.

AI-assisted: yes.

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (Not applicable: test-only.)

🔄 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/23 **Author:** [@wavehs](https://github.com/wavehs) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/24/2026 **Merged by:** [@ubiquitarianism](https://github.com/ubiquitarianism) **Base:** `main` ← **Head:** `test-guest-scene-record-realpath` --- ### 📝 Commits (2) - [`82b46db`](https://github.com/ubiquitarianism/leonida/commit/82b46db626ebff571aaf73150fdf2033bc1b122b) tests: compare the guest-scene record with the loader path the runner resolves - [`0d927e5`](https://github.com/ubiquitarianism/leonida/commit/0d927e57e97c808a05c7f0f0fc317ae87c84bc91) tests: resolve the unicode-path case's report path too ### 📊 Changes **1 file changed** (+7 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_guest_scene_reference.py` (+7 -2) </details> ### 📄 Description Claimed in the coordination issue as: none — the original project's coordination issue was lost with its repository, and this repository has no such issue yet. No open pull request touches `tests/test_guest_scene_reference.py`. Depends on: none. ### What and why `tests/test_guest_scene_reference.py` fails its launch-failure case on macOS (`test_guest_scene_reference.py:120`, `1 failed`), which is one of the two red files in the standard-library loop: ``` AssertionError: '/private/var/folders/.../invalid.exe' != '/var/folders/.../invalid.exe' ``` `scripts/run_guest_scene.py:348` resolves `--loader`, `--guest` and `--shaders` before it starts, so the run record deliberately holds the physical path. `tempfile` hands out `/var/folders/...` on macOS, which is a symlink to `/private/var/folders/...`, so the expectation has to be resolved too. The assertion now compares with `str(bad_loader.resolve())`; nothing else in the test changes, and on Linux and Windows `resolve()` is a no-op there. Test file only; no tool code. ### Tested `main@9ec34cdff`, macOS 15 arm64 (Apple M3 Pro), CPython 3.15.2, CPU only, no game files: | tree | `tests/test_guest_scene_reference.py` | |---|---| | `main@9ec34cdff` | `FAILED (failures=1)` — the diff above | | this commit | `Ran 6 tests ... OK` | `tests/test_dev_guest_scene.py` also OK, `compileall` clean, `check_no_game_data.py` clean. Not run: Windows, real Linux, any GPU test, the translator suite. AI-assisted: yes. ### Checklist - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (Not applicable: test-only.) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:16:43 +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#75
No description provided.