testing_env: add needs_python method.

This commit is contained in:
Mike McQuaid 2016-07-29 15:54:12 -06:00
parent b43e49a9b8
commit 70a1ef5bdf

View File

@ -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