Leaklens

pytest-dev__pytest-8906

Improve handling of skip for module level

Verdict: the fix is stated in the issue (Tier A).

Perhaps improve the message to something like this: ``` Using pytest.skip outside of a test will skip the entire module, if that's your intention pass `allow_module_level=True`. If you want to skip a specific test or entire class, use the @pytest.mark.skip or @pytest.mark.skipif decorators. ```

The text states the fix: “Perhaps improve the message to something like this: ``` Using pytest.skip outside of a test will skip the entire module, if that's your intention pass `allow_module_leve…”

All SWE-bench Lite tasks · more pytest-dev/pytest tasks · How the check works