diff --git a/Library/Homebrew/test/test_patching.rb b/Library/Homebrew/test/test_patching.rb index 9d187c400d..9d9f95e1d6 100644 --- a/Library/Homebrew/test/test_patching.rb +++ b/Library/Homebrew/test/test_patching.rb @@ -14,6 +14,11 @@ class PatchingTests < Homebrew::TestCase end end + def teardown + @_f.clear_cache + @_f.patchlist.select(&:external?).each(&:clear_cache) + end + def assert_patched(path) s = File.read(path) refute_includes s, "NOOP", "#{path} was not patched as expected"