diff --git a/crates/uv/tests/common/mod.rs b/crates/uv/tests/common/mod.rs index 5f4a8316d89e8..c25ec5e3ee56f 100644 --- a/crates/uv/tests/common/mod.rs +++ b/crates/uv/tests/common/mod.rs @@ -1039,10 +1039,10 @@ pub fn run_and_format_with_status>( if let Some(windows_filters) = windows_filters { // The optional leading +/-/~ is for install logs, the optional next line is for lockfiles let windows_only_deps = [ - (r"( [-+~] )?colorama==\d+(\.[\d+])+( \n --hash=.*)?\n( # via .*\n)?"), - (r"( [-+~] )?colorama==\d+(\.[\d+])+(\s+# via .*)?\n"), - (r"( [-+~] )?tzdata==\d+(\.[\d+])+( \n --hash=.*)?\n( # via .*\n)?"), - (r"( [-+~] )?tzdata==\d+(\.[\d+])+(\s+# via .*)?\n"), + (r"( ?[-+~] ?)?colorama==\d+(\.\d+)+( \\n\s+--hash=.*)?\n(\s+# via .*\n)?"), + (r"( ?[-+~] ?)?colorama==\d+(\.\d+)+\s+[-+~]?(\s+# via .*)?\n"), + (r"( ?[-+~] ?)?tzdata==\d+(\.\d+)+( \\n\s+--hash=.*)?\n(\s+# via .*\n)?"), + (r"( ?[-+~] ?)?tzdata==\d+(\.\d+)+\s+[-+~]?(\s+# via .*)?\n"), ]; let mut removed_packages = 0; for windows_only_dep in windows_only_deps {