diff --git a/crates/uv/tests/pip_install.rs b/crates/uv/tests/pip_install.rs index d053e60f7eec..694621268b8b 100644 --- a/crates/uv/tests/pip_install.rs +++ b/crates/uv/tests/pip_install.rs @@ -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)]