mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:10:52 +01:00
[PR #23] [MERGED] tests: compare the guest-scene record with the loader path the runner resolves #75
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#75
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/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)
82b46dbtests: compare the guest-scene record with the loader path the runner resolves0d927e5tests: 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.pyfails 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:scripts/run_guest_scene.py:348resolves--loader,--guestand--shadersbefore it starts, so the run record deliberately holds the physical path.tempfilehands 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 withstr(bad_loader.resolve()); nothing else in the test changes, and on Linux and Windowsresolve()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:tests/test_guest_scene_reference.pymain@9ec34cdffFAILED (failures=1)— the diff aboveRan 6 tests ... OKtests/test_dev_guest_scene.pyalso OK,compileallclean,check_no_game_data.pyclean. Not run: Windows, real Linux, any GPU test, the translator suite.AI-assisted: yes.
Checklist
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.