Remove VIRTUAL_ENV from project commmands by default (#6976)

And use test context helpers for commands consistently.

Needed for https://github.com/astral-sh/uv/pull/6864
This commit is contained in:
Zanie Blue
2024-09-03 14:11:23 -05:00
committed by GitHub
parent 1234b6dcf1
commit 1e89d3e44f
9 changed files with 112 additions and 117 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ fn command(context: &TestContext, python_versions: &[&str]) -> Command {
.arg(packse_index_url())
.arg("--find-links")
.arg(build_vendor_links_url());
context.add_shared_args(&mut command);
context.add_shared_args(&mut command, true);
command.env_remove("UV_EXCLUDE_NEWER");
command.env("UV_TEST_PYTHON_PATH", python_path);
+1 -1
View File
@@ -50,7 +50,7 @@ fn command(context: &TestContext) -> Command {
.arg(packse_index_url())
.arg("--find-links")
.arg(build_vendor_links_url());
context.add_shared_args(&mut command);
context.add_shared_args(&mut command, true);
command.env_remove("UV_EXCLUDE_NEWER");
command
}