Skip to content
Snippets Groups Projects
Commit 33befcf3 authored by Xu Cheng's avatar Xu Cheng
Browse files

tests: fix patching test for no-compat mode


Closes Homebrew/homebrew#41977.

Signed-off-by: default avatarXu Cheng <xucheng@me.com>
parent 60600c82
No related branches found
No related tags found
No related merge requests found
......@@ -941,7 +941,7 @@ class Formula
end
def prepare_patches
active_spec.add_legacy_patches(patches)
active_spec.add_legacy_patches(patches) if respond_to?(:patches)
patchlist.grep(DATAPatch) { |p| p.path = path }
......
......@@ -106,7 +106,7 @@ class PatchingTests < Homebrew::TestCase
def test_patch_DATA_constant
assert_patched formula("test", Pathname.new(__FILE__).expand_path) {
def patches
Formula::DATA
:DATA
end
}
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment