diff --git a/crates/uv/tests/it/branching_urls.rs b/crates/uv/tests/it/branching_urls.rs index 88da1f1c0db9..759fc67c7279 100644 --- a/crates/uv/tests/it/branching_urls.rs +++ b/crates/uv/tests/it/branching_urls.rs @@ -621,6 +621,7 @@ fn branching_between_registry_and_direct_url() -> Result<()> { /// ] /// ``` #[test] +#[cfg(feature = "git")] fn branching_urls_of_different_sources_disjoint() -> Result<()> { let context = TestContext::new("3.12"); @@ -703,6 +704,7 @@ fn branching_urls_of_different_sources_disjoint() -> Result<()> { /// ] /// ``` #[test] +#[cfg(feature = "git")] fn branching_urls_of_different_sources_conflict() -> Result<()> { let context = TestContext::new("3.12"); diff --git a/crates/uv/tests/it/edit.rs b/crates/uv/tests/it/edit.rs index 84f8cd2cef51..2b0a83d5f32f 100644 --- a/crates/uv/tests/it/edit.rs +++ b/crates/uv/tests/it/edit.rs @@ -4545,6 +4545,7 @@ fn add_repeat() -> Result<()> { /// Add from requirement file. #[test] +#[cfg(feature = "git")] fn add_requirements_file() -> Result<()> { let context = TestContext::new("3.12").with_filtered_counts(); diff --git a/crates/uv/tests/it/main.rs b/crates/uv/tests/it/main.rs index 44c7488cb542..5ffe6349e722 100644 --- a/crates/uv/tests/it/main.rs +++ b/crates/uv/tests/it/main.rs @@ -28,7 +28,7 @@ mod export; mod help; -#[cfg(all(feature = "python", feature = "pypi"))] +#[cfg(all(feature = "python", feature = "pypi", feature = "git"))] mod init; #[cfg(all(feature = "python", feature = "pypi"))]