mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:45:53 +01:00
[PR #835] tests: cover partial Windows known-folder results (TEST-WINDOWS-KNOWN-FOLDERS) #873
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#873
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/835
Author: @TheGeogeo
Created: 11/24/2026
Status: 🔄 Open
Base:
main← Head:test/windows-known-folders-partial📝 Commits (1)
56d42daTest partial Windows known-folder results📊 Changes
1 file changed (+23 additions, -1 deletions)
View changed files
📝
tests/test_make_game_preflight.py(+23 -1)📄 Description
Claimed in the coordination issue as: TEST-WINDOWS-KNOWN-FOLDERS
What and why
known_folders()can return partial results. The live test expected all three paths and failed when the restricted Windows shell returned two. Allow the documented result count, retain the live absolute-path and repeat-call checks, and add a mock shell test that verifies partial results and buffer cleanup.This test-only change carries forward my earlier
ProjectLeonida/LeonidaPR #10060, rechecked against this repository'smain.Tested
After a rebase on
main56bdd7e8(56d42dab, same patch as528dc900), on Windows 11, Python 3.12.4:tests/test_make_game_preflight.py110 run, OK (1 skipped), also from a venv whose path has a space;tests/test_make_game_pipeline_preflight.py23 run, OK (1 skipped);test_tool_stdout_encoding.py,test_docs_cli_flags.py,test_text_write_line_endings.py,test_ctest_registration.pyandtest_ci_registration.pyOK;git diff --checkand the no-game-data check clean.GameDiscoveryTest.test_known_folders_from_the_shellfailed onmainatd0da7dadwith2 != 3in the restricted session.python -I -B tests/test_make_game_preflight.pyon this branch: 98 passed and 1 skipped in both the restricted and normal Windows sessions. The skipped test requires a case-sensitive filesystem.python -I -B tests/test_make_game_pipeline_preflight.py: 19 passed and 1 skipped. The skipped test requires POSIX execute permissions.git diff --checkandpython -I -B scripts/check_no_game_data.py tests/test_make_game_preflight.py: passed.GPUs tested: n/a. CPU-only tests.
AI-assisted: Yes, Codex.
Checklist
main.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.