Skip to content

Commit

Permalink
make test_m2w64_stdlib_legal more robust against changes in lint text
Browse files Browse the repository at this point in the history
  • Loading branch information
h-vetinari committed Sep 1, 2024
1 parent 5f00224 commit f4c2316
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_lint_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def test_stdlib_lint(comp_lang):

def test_m2w64_stdlib_legal():
# allow recipes that _only_ depend on {{ stdlib("m2w64_c") }}
avoid_message = "This recipe is using a compiler"
avoid_message = "stdlib"

with tmp_directory() as recipe_dir:
with open(os.path.join(recipe_dir, "meta.yaml"), "w") as fh:
Expand All @@ -92,7 +92,7 @@ def test_m2w64_stdlib_legal():
)

lints, _ = linter.main(recipe_dir, return_hints=True)
assert not any(lint.startswith(avoid_message) for lint in lints)
assert not any(avoid_message in lint for lint in lints)


@pytest.mark.parametrize(
Expand Down

0 comments on commit f4c2316

Please sign in to comment.