[macos] Remove python2 UnixTools and adjust brew symlinks (#8452)

This commit is contained in:
Shamil Mubarakshin
2023-10-15 20:34:15 +02:00
committed by GitHub
parent 060ad1383a
commit b3b303d294
3 changed files with 17 additions and 16 deletions
+2 -10
View File
@@ -30,19 +30,11 @@ Describe "Python3" -Skip:($os.IsVenturaArm64) {
Describe "Python2" -Skip:($os.IsVenturaArm64 -or $os.IsVentura) {
It "Python 2 is available" {
"python --version" | Should -ReturnZeroExitCode
}
It "Python 2 is real 2.x" {
(Get-CommandResult "python --version").Output | Should -BeLike "Python 2.*"
}
It "Python 2 is installed under /usr/local/bin" {
Get-WhichTool "python" | Should -BeLike "/usr/local/bin*"
"/Library/Frameworks/Python.framework/Versions/2.7/bin/python --version" | Should -ReturnZeroExitCode
}
It "Pip 2 is available" {
"pip --version" | Should -ReturnZeroExitCode
"/Library/Frameworks/Python.framework/Versions/2.7/bin/pip --version" | Should -ReturnZeroExitCode
}
It "2to3 symlink does not point to Python 2" {