Skip to content

Handle no_cover when coverage is disabled - #758

Open
GruffElixir wants to merge 1 commit into
pytest-dev:masterfrom
GruffElixir:fix/no-cover-without-coverage-590
Open

GruffElixir wants to merge 1 commit into
pytest-dev:masterfrom
GruffElixir:fix/no-cover-without-coverage-590

Conversation

@GruffElixir

Copy link
Copy Markdown

Fixes #590. Skip coverage pause and resume hooks when coverage is disabled with --no-cov. Tests: PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 PYTHONPATH=src python -m pytest -q -o addopts='' -p pytester tests/test_pytest_cov.py -k no_cover_marker_with_no_cov.

Copilot AI lite review requested due to automatic review settings September 14, 2026 13:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@pytest.mark.no_cover tests fail with --no-cov

2 participants