Skip to content

Commit 1b760af

Browse files
authored
Fix test context filtering of Python platform keys with elided patch versions (#8713)
Cherry-picked from #8650
1 parent 85f9a0d commit 1b760af

File tree

1 file changed

+2
-1
lines changed
  • crates/uv/tests/it/common

1 file changed

+2
-1
lines changed

crates/uv/tests/it/common/mod.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,9 @@ impl TestContext {
215215

216216
/// Adds a filter that ignores platform information in a Python installation key.
217217
pub fn with_filtered_python_keys(mut self) -> Self {
218+
// Filter platform keys
218219
self.filters.push((
219-
r"((?:cpython|pypy)-\d+\.\d+(:?\.\d+)?[a-z]?(:?\+[a-z]+)?)-.*".to_string(),
220+
r"((?:cpython|pypy)-\d+\.\d+(?:\.(?:\[X\]|\d+))?[a-z]?(?:\+[a-z]+)?)-.*".to_string(),
220221
"$1-[PLATFORM]".to_string(),
221222
));
222223
self

0 commit comments

Comments
 (0)