diff --git a/crates/pet/tests/ci_test.rs b/crates/pet/tests/ci_test.rs index 4891e14d..dc297898 100644 --- a/crates/pet/tests/ci_test.rs +++ b/crates/pet/tests/ci_test.rs @@ -719,10 +719,11 @@ fn get_python_run_command(env: &PythonEnvironment) -> Vec { if env.executable.is_none() { panic!("Conda environment without executable"); } - let conda_exe = match env.manager.clone() { - Some(manager) => manager.executable.to_str().unwrap_or_default().to_string(), - None => get_conda_exe().to_string(), - }; + let mut conda_exe = get_conda_exe().to_string(); + + if let Some(manager) = &env.manager { + conda_exe = manager.executable.to_str().unwrap_or_default().to_string(); + } if let Some(name) = env.name.clone() { return vec![ conda_exe,