mirror of https://github.com/astral-sh/uv
uv/tests: fix windows-only dependency filter
Previously we were using `[+-~]`, but this includes the full range of characters from `+` to `~`. Incidentally, this does include `-`. We instead rewrite this as `[-+~]`, which probably matches the intent.
This commit is contained in:
parent
7516b0902a
commit
04d35106bf
|
|
@ -1089,10 +1089,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 = [
|
||||
("( [+-~] )?colorama==\\d+(\\.[\\d+])+( \\\\\n --hash=.*)?\n( # via .*\n)?"),
|
||||
("( [+-~] )?colorama==\\d+(\\.[\\d+])+(\\s+# via .*)?\n"),
|
||||
("( [+-~] )?tzdata==\\d+(\\.[\\d+])+( \\\\\n --hash=.*)?\n( # via .*\n)?"),
|
||||
("( [+-~] )?tzdata==\\d+(\\.[\\d+])+(\\s+# via .*)?\n"),
|
||||
("( [-+~] )?colorama==\\d+(\\.[\\d+])+( \\\\\n --hash=.*)?\n( # via .*\n)?"),
|
||||
("( [-+~] )?colorama==\\d+(\\.[\\d+])+(\\s+# via .*)?\n"),
|
||||
("( [-+~] )?tzdata==\\d+(\\.[\\d+])+( \\\\\n --hash=.*)?\n( # via .*\n)?"),
|
||||
("( [-+~] )?tzdata==\\d+(\\.[\\d+])+(\\s+# via .*)?\n"),
|
||||
];
|
||||
let mut removed_packages = 0;
|
||||
for windows_only_dep in windows_only_deps {
|
||||
|
|
|
|||
Loading…
Reference in New Issue