Require opt-in to use alternative Python implementations (#7650)

Closes #7118 

This only really affects managed interpreters, as we exclude alternative
Python implementations from the search path during the
`VersionRequest::executable_names` part of discovery.
This commit is contained in:
Zanie Blue 2024-09-24 12:52:15 -05:00 committed by GitHub
parent da328379c1
commit a53ddaa24a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 100 additions and 14 deletions

View file

@ -1793,7 +1793,7 @@ mod tests {
})?;
assert!(
matches!(result, Err(PythonNotFound { .. })),
"We should not the pypy interpreter if not named `python` or requested; got {result:?}"
"We should not find the pypy interpreter if not named `python` or requested; got {result:?}"
);
// But we should find it