Remove exclude newer methods on test context (#4535)

## Summary

Closes https://github.com/astral-sh/uv/issues/4531.
This commit is contained in:
Charlie Marsh 2024-06-25 19:45:35 -04:00 committed by GitHub
parent c28a2c7583
commit 41f051db3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 493 additions and 510 deletions

View file

@ -31,6 +31,7 @@ fn command(context: &TestContext, python_versions: &[&str]) -> Command {
.arg("--find-links")
.arg("{{vendor_links}}");
context.add_shared_args(&mut command);
command.env_remove("UV_EXCLUDE_NEWER");
command.env("UV_TEST_PYTHON_PATH", python_path);
command

View file

@ -51,6 +51,7 @@ fn command(context: &TestContext) -> Command {
.arg("--find-links")
.arg("{{vendor_links}}");
context.add_shared_args(&mut command);
command.env_remove("UV_EXCLUDE_NEWER");
command
}

View file

@ -51,7 +51,8 @@ fn {{module_name}}() -> Result<()> {
"###
)?;
let mut cmd = context.lock_without_exclude_newer();
let mut cmd = context.lock();
cmd.env_remove("UV_EXCLUDE_NEWER");
cmd.arg("--index-url").arg("{{index_url}}");
{{#expected.explanation_lines}}
// {{.}}