mirror of
https://github.com/astral-sh/uv.git
synced 2025-11-19 19:44:40 +00:00
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:
parent
f9fbf41f69
commit
8eada1685c
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue