aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/spec_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/test/spec_helper.rb')
-rw-r--r--Library/Homebrew/test/spec_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/test/spec_helper.rb b/Library/Homebrew/test/spec_helper.rb
index 6ffbf5c8e..67e5f555a 100644
--- a/Library/Homebrew/test/spec_helper.rb
+++ b/Library/Homebrew/test/spec_helper.rb
@@ -33,6 +33,10 @@ RSpec.configure do |config|
if example.metadata[:needs_macos]
skip "not on macOS" unless OS.mac?
end
+
+ if example.metadata[:needs_python]
+ skip "Python not installed." unless which("python")
+ end
end
config.around(:each) do |example|
begin