Use `--exclude-newer` in some `pip sync` tests (#3846)

## Summary

Saw a bunch of failures in
https://github.com/astral-sh/uv/actions/runs/9247239042/job/25435791135?pr=3252
due to `anyio` publishing v0.4.4.
This commit is contained in:
Charlie Marsh 2024-05-26 20:41:18 -04:00 committed by GitHub
parent 98652e3954
commit 34e1cc8dd4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 191 additions and 182 deletions

View File

@ -7,7 +7,7 @@ use assert_cmd::prelude::*;
use assert_fs::fixture::ChildPath; use assert_fs::fixture::ChildPath;
use assert_fs::prelude::*; use assert_fs::prelude::*;
use crate::common::{get_bin, uv_snapshot, TestContext}; use crate::common::{get_bin, uv_snapshot, TestContext, EXCLUDE_NEWER};
mod common; mod common;
@ -33,6 +33,8 @@ fn sync_command(context: &TestContext) -> Command {
.arg("sync") .arg("sync")
.arg("--cache-dir") .arg("--cache-dir")
.arg(context.cache_dir.path()) .arg(context.cache_dir.path())
.arg("--exclude-newer")
.arg(EXCLUDE_NEWER)
.env("VIRTUAL_ENV", context.venv.as_os_str()) .env("VIRTUAL_ENV", context.venv.as_os_str())
.env("UV_NO_WRAP", "1") .env("UV_NO_WRAP", "1")
.current_dir(&context.temp_dir); .current_dir(&context.temp_dir);

File diff suppressed because it is too large Load Diff