From 1b45692ac77ccfe77691498f4cc0028e413c9736 Mon Sep 17 00:00:00 2001 From: Geoffrey Thomas Date: Fri, 10 Oct 2025 13:15:17 -0400 Subject: [PATCH] Fix comments on python_no_transparent_upgrade_with_venv_patch_specification I think this was originally intended to behave as the comments specified, but the behavior changed in discussions in #13312 somewhere. --- crates/uv/tests/it/python_upgrade.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/uv/tests/it/python_upgrade.rs b/crates/uv/tests/it/python_upgrade.rs index cd34c4f42ad3..9d0fb4f24828 100644 --- a/crates/uv/tests/it/python_upgrade.rs +++ b/crates/uv/tests/it/python_upgrade.rs @@ -385,8 +385,8 @@ fn python_upgrade_ignored_with_python_pin() { ); } -// Virtual environments only record minor versions. `uv venv -p 3.x.y` will -// not prevent transparent upgrades. +// Virtual environments record patch versions. `uv venv -p 3.x.y` will +// prevent transparent upgrades. #[test] fn python_no_transparent_upgrade_with_venv_patch_specification() { let context: TestContext = TestContext::new_with_versions(&["3.13"]) @@ -438,7 +438,7 @@ fn python_no_transparent_upgrade_with_venv_patch_specification() { + cpython-3.10.19-[PLATFORM] (python3.10) "); - // The virtual environment Python version is transparently upgraded. + // The virtual environment Python version remains the same. uv_snapshot!(context.filters(), context.run().arg("python").arg("--version"), @r" success: true exit_code: 0