From 0735be21b92c695ded494d6e3b4be16b60e7c993 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 11 Feb 2025 09:55:46 +0100 Subject: [PATCH] Mark `sync::sync_dry_run` test as requiring `python-managed` (#11415) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Mark `sync::sync_dry_run` as requiring `python-managed`, as it fails with system Python executables due to extraneous Python packages being installed: ``` ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot: sync_dry_run Source: crates/uv/tests/it/sync.rs:6574 ──────────────────────────────────────────────────────────────────────────────── Expression: snapshot ──────────────────────────────────────────────────────────────────────────────── -old snapshot +new results ────────────┬─────────────────────────────────────────────────────────────────── 5 5 │ Using CPython 3.12.[X] interpreter at: [PYTHON-3.12] 6 6 │ Would create virtual environment at: .venv 7 7 │ Resolved 2 packages in [TIME] 8 8 │ Would create lockfile at: uv.lock 9 │-Would download 1 package 10 │-Would install 1 package 11 │- + iniconfig==2.0.0 9 │+Would uninstall 1310 packages 10 │+ - a2wsgi==1.10.8 […] ``` ## Test Plan ``` cargo test --no-default-features --features=python,pypi,git ``` --- crates/uv/tests/it/sync.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/uv/tests/it/sync.rs b/crates/uv/tests/it/sync.rs index 317ba1d24..b4c5fbe79 100644 --- a/crates/uv/tests/it/sync.rs +++ b/crates/uv/tests/it/sync.rs @@ -6556,6 +6556,7 @@ fn find_links_relative_in_config_works_from_subdir() -> Result<()> { } #[test] +#[cfg(feature = "python-managed")] fn sync_dry_run() -> Result<()> { let context = TestContext::new_with_versions(&["3.8", "3.12"]);