From a5a917169b82a90fbf26822a28f13438a4e978f9 Mon Sep 17 00:00:00 2001 From: Simon Brugman Date: Mon, 26 Feb 2024 15:02:08 +0100 Subject: [PATCH] Uv tests fail when path contains size/time-like strings (#1984) --- crates/uv/tests/common/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/uv/tests/common/mod.rs b/crates/uv/tests/common/mod.rs index 75a266341..048d7a009 100644 --- a/crates/uv/tests/common/mod.rs +++ b/crates/uv/tests/common/mod.rs @@ -27,9 +27,9 @@ pub static EXCLUDE_NEWER: &str = "2023-11-18T12:00:00Z"; pub const INSTA_FILTERS: &[(&str, &str)] = &[ (r"--cache-dir [^\s]+", "--cache-dir [CACHE_DIR]"), // Operation times - (r"(\d+m )?(\d+\.)?\d+(ms|s)", "[TIME]"), + (r"(\s|\()(\d+m )?(\d+\.)?\d+(ms|s)", "$1[TIME]"), // File sizes - (r"(\d+\.)?\d+([KM]i)?B", "[SIZE]"), + (r"(\s|\()(\d+\.)?\d+([KM]i)?B", "$1[SIZE]"), // Rewrite Windows output to Unix output (r"\\([\w\d])", "/$1"), (r"uv.exe", "uv"),