From 2592e0ff1a100a85f4f503cf7de8ab4033d6d193 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Fri, 21 Mar 2025 13:35:53 -0500 Subject: [PATCH] Update `python_required_python_major_minor` with note about Homebrew (#12378) Resolves https://github.com/astral-sh/uv/pull/12377#discussion_r2008114043 --- crates/uv/tests/it/python_find.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/uv/tests/it/python_find.rs b/crates/uv/tests/it/python_find.rs index e5d29024b..2e848f36a 100644 --- a/crates/uv/tests/it/python_find.rs +++ b/crates/uv/tests/it/python_find.rs @@ -665,8 +665,14 @@ fn python_find_venv_invalid() { } /// See: +/// +/// This test will not succeed on macOS if using a Homebrew provided interpreter. The interpreter +/// reports `sys.executable` as the canonicalized path instead of `[TEMP_DIR]/...`. For this reason, +/// it's marked as requiring our `python-managed` feature — but it does not enforce that these are +/// used in the test context. #[test] #[cfg(unix)] +#[cfg(feature = "python-managed")] fn python_required_python_major_minor() { let context: TestContext = TestContext::new_with_versions(&["3.11", "3.12"]);