Skip to content

Commit

Permalink
Don't skip "skip" tests when we expect no warnings
Browse files Browse the repository at this point in the history
As suggested by @h-vetinari in #2206 (comment).
  • Loading branch information
mgorny committed Jan 6, 2025
1 parent 5f04c24 commit 9693d39
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions tests/test_lint_recipe.py
Original file line number Diff line number Diff line change
Expand Up @@ -3067,10 +3067,6 @@ def test_hint_pip_no_build_backend(
tmp_path,
):
if skip:
if (
not expected_hints or remove_top_level
) and not outputs_expected_hints:
pytest.skip("No hints expected")
with open(tmp_path / "conda-forge.yml", "w") as fh:
fh.write(
"""
Expand Down Expand Up @@ -3341,8 +3337,6 @@ def test_hint_noarch_python_use_python_min(
tmp_path,
):
if skip:
if not expected_hints:
pytest.skip("No hints expected")
with open(tmp_path / "conda-forge.yml", "w") as fh:
fh.write(
"""
Expand Down

0 comments on commit 9693d39

Please sign in to comment.