Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Check interpreter metadata after recreating an upgradeable venv
  • Loading branch information
konstin authored and zanieb committed Oct 7, 2026
commit 1624b0fac29f701a52205524cb31b80ff434527b
4 changes: 2 additions & 2 deletions crates/uv/tests/python/venv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ fn create_venv_caches_interpreter() -> Result<()> {
Ok(())
}

/// An upgradeable venv must discard cached metadata when its base path changes.
/// Cached metadata matches Python after recreating an upgradeable venv.
#[test]
#[cfg(feature = "test-python-managed")]
fn create_venv_caches_upgradeable_interpreter() -> Result<()> {
Expand Down Expand Up @@ -168,8 +168,8 @@ fn create_venv_caches_upgradeable_interpreter() -> Result<()> {
.init_no_wait()?
.context("Fresh interpreter cache is locked")?;
let cached = PythonEnvironment::from_root(context.venv.path(), &cache)?;
assert!(startup_marker.is_file());
let queried = PythonEnvironment::from_root(context.venv.path(), &fresh_cache)?;
assert!(startup_marker.is_file());
assert_eq!(cached, queried);

Ok(())
Expand Down
⌂ 换网址