mirror of
https://github.com/astral-sh/uv.git
synced 2025-10-27 18:36:44 +00:00
Update Rust crate fs-err to v3 (#8625)
This commit is contained in:
parent
07806c404a
commit
dae630ae50
9 changed files with 66 additions and 46 deletions
|
|
@ -1022,8 +1022,15 @@ mod tests {
|
|||
.unwrap()
|
||||
.to_metadata(Path::new("/do/not/read"))
|
||||
.unwrap_err();
|
||||
// Simplified for windows compatibility.
|
||||
assert_snapshot!(err.to_string().replace('\\', "/"), @"failed to open file `/do/not/read/Readme.md`");
|
||||
// Strip away OS specific part.
|
||||
let err = err
|
||||
.to_string()
|
||||
.replace('\\', "/")
|
||||
.split_once(':')
|
||||
.unwrap()
|
||||
.0
|
||||
.to_string();
|
||||
assert_snapshot!(err, @"failed to open file `/do/not/read/Readme.md`");
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue