From 36806f8e665838a089e5be701fb2a6b6781d3d37 Mon Sep 17 00:00:00 2001 From: Ben Beasley Date: Wed, 10 Dec 2025 09:41:47 +0000 Subject: [PATCH] Gate a few more tests on the pypi feature (#17059) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Gate a few more tests on the `pypi` feature. All of these fail in offline environments because they try to communicate with PyPI. ## Test Plan Applied as a patch to Fedora’s `uv` package, version 0.9.16. --- crates/uv/tests/it/pip_list.rs | 2 ++ crates/uv/tests/it/pip_show.rs | 2 ++ 2 files changed, 4 insertions(+) diff --git a/crates/uv/tests/it/pip_list.rs b/crates/uv/tests/it/pip_list.rs index fc487f8cd..830aeaf5e 100644 --- a/crates/uv/tests/it/pip_list.rs +++ b/crates/uv/tests/it/pip_list.rs @@ -791,6 +791,7 @@ fn list_ignores_quiet_flag_format_freeze() { } #[test] +#[cfg(feature = "pypi")] fn list_target() -> Result<()> { let context = TestContext::new("3.12"); @@ -839,6 +840,7 @@ fn list_target() -> Result<()> { } #[test] +#[cfg(feature = "pypi")] fn list_prefix() -> Result<()> { let context = TestContext::new("3.12"); diff --git a/crates/uv/tests/it/pip_show.rs b/crates/uv/tests/it/pip_show.rs index a44dd18f8..1ff30025d 100644 --- a/crates/uv/tests/it/pip_show.rs +++ b/crates/uv/tests/it/pip_show.rs @@ -536,6 +536,7 @@ fn show_files() { } #[test] +#[cfg(feature = "pypi")] fn show_target() -> Result<()> { let context = TestContext::new("3.12"); @@ -587,6 +588,7 @@ fn show_target() -> Result<()> { } #[test] +#[cfg(feature = "pypi")] fn show_prefix() -> Result<()> { let context = TestContext::new("3.12");