mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:40:52 +01:00
[PR #2092] tests: first_look paths use the long temp name when it is not ASCII (TEST-FIRST-LOOK-NON-ASCII) #2097
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#2097
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/2092
Author: @OguzSoykan
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:test/first-look-non-ascii📝 Commits (1)
d838d7ftests: first_look paths use the long temp name when it is not ASCII (TEST-FIRST-LOOK-NON-ASCII)📊 Changes
1 file changed (+7 additions, -0 deletions)
View changed files
📝
tests/test_first_look_paths.py(+7 -0)📄 Description
Claimed in the coordination issue as: TEST-FIRST-LOOK-NON-ASCII (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7173090712)
What and why
tests/test_first_look_paths.pyfails on native Windows when the user name is not ASCII.tempfilereturns the 8.3 alias of the profile folder (C:\Users\OUZ~1\...for a user named Oğuz), and Windows PowerShell 5.1 refuses toSet-Location -LiteralPathinto the short alias of a folder whose long name is not ASCII:On the same machine
Set-Location -LiteralPath C:\PROGRA~1works, andTest-Path -LiteralPath C:\Users\OUZ~1returnsTrue. Only the non-ASCII short alias fails, so the location never changes andfirst_look.ps1cannot find the relativefixture[1].exe.The fix is test-only. When the long name of the temporary folder is not ASCII, the test uses that long name. An ASCII short alias, such as CI's
RUNNER~1, is kept, so the check that the dry run gets the canonical (resolve()d) path is still exercised there. Nothing changes on hosts whose temporary folder is already ASCII.Tested
Windows 10 Pro 19045, Windows PowerShell 5.1, CPython 3.12, user profile
C:\Users\Oğuz(TEMP =C:\Users\OUZ~1\AppData\Local\Temp):py -3.12 -I tests/test_first_look_paths.py:FAILED (failures=1)onmain,OKwith this change.GPUs tested: n/a
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly.docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.