Skip to content

Commit

Permalink
Fix a self.options.remove() false positive
Browse files Browse the repository at this point in the history
Triggered in conan-io/conan-center-index#19381 (comment)
for `self.options.remove_deprecations`.
  • Loading branch information
valgur authored Aug 24, 2023
1 parent ad69859 commit 0363c97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hooks/conan-center.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ def test(out):

@run_test("KB-H045", output)
def test(out):
if "self.options.remove" in conanfile_content:
if "self.options.remove(" in conanfile_content:
out.error("Found 'self.options.remove'. Replace it by 'del self.options.<opt>'.")

@run_test("KB-H046", output)
Expand Down

0 comments on commit 0363c97

Please sign in to comment.