mirror of https://github.com/astral-sh/uv
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
|
|
@ -385,8 +385,8 @@ fn python_upgrade_ignored_with_python_pin() {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Virtual environments only record minor versions. `uv venv -p 3.x.y` will
|
// Virtual environments record patch versions. `uv venv -p 3.x.y` will
|
||||||
// not prevent transparent upgrades.
|
// prevent transparent upgrades.
|
||||||
#[test]
|
#[test]
|
||||||
fn python_no_transparent_upgrade_with_venv_patch_specification() {
|
fn python_no_transparent_upgrade_with_venv_patch_specification() {
|
||||||
let context: TestContext = TestContext::new_with_versions(&["3.13"])
|
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)
|
+ 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"
|
uv_snapshot!(context.filters(), context.run().arg("python").arg("--version"), @r"
|
||||||
success: true
|
success: true
|
||||||
exit_code: 0
|
exit_code: 0
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue