testing_env: add needs_python method.
This commit is contained in:
parent
b43e49a9b8
commit
70a1ef5bdf
@ -97,6 +97,10 @@ module Homebrew
|
|||||||
skip "Requires compat/ code" if ENV["HOMEBREW_NO_COMPAT"]
|
skip "Requires compat/ code" if ENV["HOMEBREW_NO_COMPAT"]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def needs_python
|
||||||
|
skip "Requires Python" unless which("python")
|
||||||
|
end
|
||||||
|
|
||||||
def assert_nothing_raised
|
def assert_nothing_raised
|
||||||
yield
|
yield
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user