mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-03 18:38:21 +00:00
Bump insta from 1.35.1 to 1.36.1 (#2180)
This commit is contained in:
parent
bc43f609b9
commit
e66afa8767
15 changed files with 42 additions and 44 deletions
|
@ -39,6 +39,6 @@ which = { workspace = true}
|
|||
[dev-dependencies]
|
||||
anyhow = { version = "1.0.80" }
|
||||
indoc = { version = "2.0.4" }
|
||||
insta = { version = "1.35.1" }
|
||||
insta = { version = "1.36.1" }
|
||||
itertools = { version = "0.12.1" }
|
||||
tempfile = { version = "3.9.0" }
|
||||
|
|
|
@ -430,7 +430,7 @@ mod windows {
|
|||
mod tests {
|
||||
use std::fmt::Debug;
|
||||
|
||||
use insta::assert_display_snapshot;
|
||||
use insta::assert_snapshot;
|
||||
use itertools::Itertools;
|
||||
|
||||
use platform_host::Platform;
|
||||
|
@ -457,7 +457,7 @@ mod windows {
|
|||
(r"Caused by: .* \(os error 3\)", "Caused by: The system cannot find the path specified. (os error 3)")
|
||||
]
|
||||
}, {
|
||||
assert_display_snapshot!(
|
||||
assert_snapshot!(
|
||||
format_err(result), @r###"
|
||||
failed to canonicalize path `C:\does\not\exists\python3.12`
|
||||
Caused by: The system cannot find the path specified. (os error 3)
|
||||
|
@ -470,8 +470,6 @@ mod windows {
|
|||
#[cfg(unix)]
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use insta::assert_display_snapshot;
|
||||
#[cfg(unix)]
|
||||
use insta::assert_snapshot;
|
||||
use itertools::Itertools;
|
||||
|
||||
|
@ -513,7 +511,7 @@ mod tests {
|
|||
)
|
||||
.unwrap()
|
||||
.ok_or(Error::NoSuchPython(request.to_string()));
|
||||
assert_display_snapshot!(
|
||||
assert_snapshot!(
|
||||
format_err(result),
|
||||
@"No Python python3.1000 In `PATH`. Is Python python3.1000 installed?"
|
||||
);
|
||||
|
@ -526,7 +524,7 @@ mod tests {
|
|||
&Platform::current().unwrap(),
|
||||
&Cache::temp().unwrap(),
|
||||
);
|
||||
assert_display_snapshot!(
|
||||
assert_snapshot!(
|
||||
format_err(result), @r###"
|
||||
failed to canonicalize path `/does/not/exists/python3.12`
|
||||
Caused by: No such file or directory (os error 2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue