diff --git a/test/mac_test.jl b/test/mac_test.jl
index 6861291..e5c6b8b 100644
--- a/test/mac_test.jl
+++ b/test/mac_test.jl
@@ -40,7 +40,7 @@ end
 catch
     false
 end
-@test try
+isinteractive() && @test try
     say("Hello")
     true
 catch