aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/test/testing_env.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/test/testing_env.rb b/Library/Homebrew/test/testing_env.rb
index 72847953d..faf7797d1 100644
--- a/Library/Homebrew/test/testing_env.rb
+++ b/Library/Homebrew/test/testing_env.rb
@@ -97,6 +97,10 @@ module Homebrew
skip "Requires compat/ code" if ENV["HOMEBREW_NO_COMPAT"]
end
+ def needs_python
+ skip "Requires Python" unless which("python")
+ end
+
def assert_nothing_raised
yield
end