mirror of
https://github.com/astral-sh/uv.git
synced 2025-12-23 09:19:48 +00:00
Add test coverage for python_upgrade with a pre-release version (#15982)
Coverage for https://github.com/astral-sh/uv/pull/15959
This commit is contained in:
parent
9cabf63cd0
commit
022a8f1dd1
1 changed files with 23 additions and 0 deletions
|
|
@ -63,6 +63,29 @@ fn python_upgrade() {
|
||||||
Installed Python 3.10.18 in [TIME]
|
Installed Python 3.10.18 in [TIME]
|
||||||
~ cpython-3.10.18-[PLATFORM] (python3.10)
|
~ cpython-3.10.18-[PLATFORM] (python3.10)
|
||||||
");
|
");
|
||||||
|
|
||||||
|
// Install an earlier pre-release version
|
||||||
|
uv_snapshot!(context.filters(), context.python_install().arg("3.14.0rc2"), @r"
|
||||||
|
success: true
|
||||||
|
exit_code: 0
|
||||||
|
----- stdout -----
|
||||||
|
|
||||||
|
----- stderr -----
|
||||||
|
Installed Python 3.14.0rc2 in [TIME]
|
||||||
|
+ cpython-3.14.0rc2-[PLATFORM] (python3.14)
|
||||||
|
");
|
||||||
|
|
||||||
|
// Upgrade the pre-release version
|
||||||
|
uv_snapshot!(context.filters(), context.python_upgrade(), @r"
|
||||||
|
success: true
|
||||||
|
exit_code: 0
|
||||||
|
----- stdout -----
|
||||||
|
|
||||||
|
----- stderr -----
|
||||||
|
warning: `uv python upgrade` is experimental and may change without warning. Pass `--preview-features python-upgrade` to disable this warning
|
||||||
|
Installed Python 3.14.0rc3 in [TIME]
|
||||||
|
+ cpython-3.14.0rc3-[PLATFORM]
|
||||||
|
");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue