Skip to content

Commit

Permalink
Ignore external VIRTUAL_ENV during uv-toolchain test runs
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb committed Jun 7, 2024
1 parent b4f2aaa commit a5ad118
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/uv-toolchain/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ mod tests {
let mut run_vars = vec![
// Ensure `PATH` is used
("UV_TEST_PYTHON_PATH", None),
// Ignore active virtual envrionments (i.e. that the dev is using)
("VIRTUAL_ENV", None),
("PATH", path.as_deref()),
// Use the temporary toolchain directory
("UV_TOOLCHAIN_DIR", Some(self.toolchains.root().as_os_str())),
Expand Down

0 comments on commit a5ad118

Please sign in to comment.