Skip to content

Commit

Permalink
uv/tests: remove double-escaping
Browse files Browse the repository at this point in the history
And otherwise make the regexes a little more robust.
  • Loading branch information
BurntSushi committed Sep 3, 2024
1 parent 8e1535c commit 08fc8ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/uv/tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1039,10 +1039,10 @@ pub fn run_and_format_with_status<T: AsRef<str>>(
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 {
Expand Down

0 comments on commit 08fc8ad

Please sign in to comment.