[macOS] Update Python script and Python3 symlink behaviour (#13174)

This commit is contained in:
Erik Bershel
2025-10-16 12:34:30 +02:00
committed by GitHub
parent 3ae94865d0
commit 2f702974cc
6 changed files with 16 additions and 19 deletions

View File

@@ -26,10 +26,15 @@ Describe "Python3" {
"pipx --version" | Should -ReturnZeroExitCode
}
It "Pip 3 and Python 3 came from the same brew formula" {
It "Pip 3 and Python 3 came from the same path prefix" {
$pip3Path = Split-Path (readlink (which pip3))
$python3Path = Split-Path (readlink (which python3))
$pip3Path | Should -BeExactly $python3Path
}
It "Pip 3 and Python 3 came from brew formula" {
Split-Path (readlink (which pip3)) | Should -BeLike "*/Cellar/*"
Split-Path (readlink (which python3)) | Should -BeLike "*/Cellar/*"
}
}