From 70a1ef5bdf113c18792197f361bf18c587ae7a9f Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Fri, 29 Jul 2016 15:54:12 -0600 Subject: testing_env: add needs_python method. --- Library/Homebrew/test/testing_env.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Library') 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 -- cgit v1.2.3