Fix comments on python_no_transparent_upgrade_with_venv_patch_specification (#16294)

I think this was originally intended to behave as the comments
specified, but the behavior changed in discussions in #13312 somewhere.
This commit is contained in:
Geoffrey Thomas 2025-10-14 08:32:47 -04:00 committed by GitHub
parent f9fbf41f69
commit 8eada1685c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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