Skip to content

Commit

Permalink
Adjust test skipping
Browse files Browse the repository at this point in the history
  • Loading branch information
Tapeline committed Feb 27, 2025
1 parent f5b0eea commit ef34b32
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions tests/test_checker/test_noqa.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def test_noqa_fixture_disabled(
absolute_path, all_violations, filename, violations, run_condition
):
"""End-to-End test to check that all violations are present."""
if not run_condition:
if not run_condition: # pragma: no cover
return
process = subprocess.Popen(
[
Expand Down Expand Up @@ -384,7 +384,7 @@ def test_noqa_fixture_disabled(
)
def test_noqa_fixture(absolute_path, filename, run_condition):
"""End-to-End test to check that `noqa` works."""
if not run_condition:
if not run_condition: # pragma: no cover
return
process = subprocess.Popen(
[
Expand Down Expand Up @@ -418,7 +418,7 @@ def test_noqa_fixture_without_ignore(
absolute_path, filename, ignored_violations, run_condition
):
"""End-to-End test to check that `noqa` works without ignores."""
if not run_condition:
if not run_condition: # pragma: no cover
return
process = subprocess.Popen(
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

from wemake_python_styleguide.compat.constants import PY313

if not PY313:
pytest.skip()
if not PY313: # pragma: no cover
pytest.skip("These tests use python 3.13+ features.")

from wemake_python_styleguide.violations.best_practices import (
SneakyTypeVarWithDefaultViolation,
Expand Down

0 comments on commit ef34b32

Please sign in to comment.