mirror of https://github.com/astral-sh/uv
Fix simple launcher test error condition (#1911)
This makes the test path on windows where developer mode is not enabled. --------- Co-authored-by: Micha Reiser <micha@reiser.io>
This commit is contained in:
parent
3417330f61
commit
20253cd045
|
|
@ -1609,11 +1609,12 @@ fn launcher_with_symlink() -> Result<()> {
|
|||
context.venv.join("Scripts\\simple_launcher.exe"),
|
||||
context.temp_dir.join("simple_launcher.exe"),
|
||||
) {
|
||||
if error.kind() == std::io::ErrorKind::PermissionDenied {
|
||||
// Not running as an administrator or developer mode isn't enabled.
|
||||
// Ignore the test
|
||||
// Os { code: 1314, kind: Uncategorized, message: "A required privilege is not held by the client." }
|
||||
// where `Uncategorized` is unstable.
|
||||
if error.raw_os_error() == Some(1314) {
|
||||
return Ok(());
|
||||
}
|
||||
return Err(error.into());
|
||||
}
|
||||
|
||||
#[cfg(unix)]
|
||||
|
|
|
|||
Loading…
Reference in New Issue