diff options
| author | Mike McQuaid | 2016-07-29 15:54:12 -0600 |
|---|---|---|
| committer | Mike McQuaid | 2016-07-29 21:21:02 -0600 |
| commit | 70a1ef5bdf113c18792197f361bf18c587ae7a9f (patch) | |
| tree | 47b1c9f38d137928b12514325d52c323e464a2f7 /Library | |
| parent | b43e49a9b841cc18316566258414976de217f0f0 (diff) | |
| download | brew-70a1ef5bdf113c18792197f361bf18c587ae7a9f.tar.bz2 | |
testing_env: add needs_python method.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/test/testing_env.rb | 4 |
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 |
