test(install): the ps1 bootstrap contract expects --no-registry on python install
install.ps1 now passes --no-registry to `uv python install` (the review fix that keeps a registry Python from satisfying the request); the exact-argv contract moves with it. Both scripts pass under Windows PowerShell 5.1 on a Win11 arm64 host.
This commit is contained in:
@@ -51,7 +51,7 @@ exit /b 0
|
||||
# cmd's `echo %* >> file` keeps the space before `>>` in the recorded line.
|
||||
$recorded = @(Get-Content -LiteralPath $argsFile | ForEach-Object { $_.Trim() })
|
||||
Assert-True ($recorded.Count -eq 2) 'uv only installs and locates bootstrap Python'
|
||||
Assert-True ($recorded[0] -eq 'python install --no-bin 3.13') 'Python minor comes from the lockfile'
|
||||
Assert-True ($recorded[0] -eq 'python install --no-bin --no-registry 3.13') 'Python minor comes from the lockfile'
|
||||
Assert-True ($recorded[1] -eq 'python find --managed-python --no-project 3.13') 'lookup ignores ambient project discovery'
|
||||
Assert-True ((Get-Content -LiteralPath $pythonArgsFile -Raw).Trim() -eq '-m pm.cli install') 'Python launches PM without a uv parent'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user