diff --git a/crates/engine/src/io/tests.rs b/crates/engine/src/io/tests.rs
--- a/crates/engine/src/io/tests.rs
+++ b/crates/engine/src/io/tests.rs
@@ -19,6 +19,7 @@ fn copied(wb: &Workbook, range: &str) -> String {
 }
 
 #[cfg(not(target_arch = "wasm32"))]
+#[cfg(unix)]
 #[test]
 fn save_fails_upfront_when_the_temp_name_is_taken() {
     // Another local user who can write the directory must not be able to point the
