Fix the uv format test failures caused by ruff release (#18019)
## Summary This fixes the snapshots and then sets the date to today so that another ruff release this month won't cause a problem again. ## Test Plan Test was re-ran.
This commit is contained in:
committed by
GitHub
parent
8c8a90306b
commit
8430dfbb55
@@ -1288,7 +1288,7 @@ impl TestContext {
|
||||
command.arg("format");
|
||||
self.add_shared_options(&mut command, false);
|
||||
// Override to a more recent date for ruff version resolution
|
||||
command.env(EnvVars::UV_EXCLUDE_NEWER, "2026-03-01T00:00:00Z");
|
||||
command.env(EnvVars::UV_EXCLUDE_NEWER, "2026-02-15T00:00:00Z");
|
||||
command
|
||||
}
|
||||
|
||||
|
||||
@@ -517,7 +517,7 @@ fn format_version_constraints() -> Result<()> {
|
||||
|
||||
----- stderr -----
|
||||
warning: `uv format` is experimental and may change without warning. Pass `--preview-features format` to disable this warning.
|
||||
ruff 0.15.0
|
||||
ruff 0.15.1
|
||||
");
|
||||
|
||||
Ok(())
|
||||
@@ -550,7 +550,7 @@ fn format_version_latest() -> Result<()> {
|
||||
|
||||
----- stderr -----
|
||||
warning: `uv format` is experimental and may change without warning. Pass `--preview-features format` to disable this warning.
|
||||
ruff 0.15.0
|
||||
ruff 0.15.1
|
||||
");
|
||||
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user