Fix bug where python3 is not found in the global path (#1351)

When we refactored handling for Windows tests, we accidentally dropped
`python3` from path searches.
This commit is contained in:
Zanie Blue
2024-02-15 15:29:33 -06:00
committed by GitHub
parent 12caff3850
commit 102e5ddfbe
@@ -147,6 +147,7 @@ pub fn find_default_python(platform: &Platform, cache: &Cache) -> Result<Interpr
let current_dir = env::current_dir()?;
let python = if cfg!(unix) {
which::which_in("python3", env::var_os("UV_TEST_PYTHON_PATH"), current_dir)
.or_else(|_| which::which("python3"))
.or_else(|_| which::which("python"))
.map_err(|_| Error::NoPythonInstalledUnix)?
} else if cfg!(windows) {