diff --git a/Library/Homebrew/utils/topological_hash.rb b/Library/Homebrew/utils/topological_hash.rb index 726eab599e..5879194559 100644 --- a/Library/Homebrew/utils/topological_hash.rb +++ b/Library/Homebrew/utils/topological_hash.rb @@ -30,6 +30,7 @@ module Utils else formula_deps = cask_or_formula.deps .reject(&:build?) + .reject(&:test?) .map(&:to_formula) cask_deps = cask_or_formula.requirements .map(&:cask)