pytest-cov breaking changes
pytest-cov 7.1.0 (March 21, 2026) is its newest release with breaking changes. The first: Behavior changed --cov-fail-under. Every breaking API change we have recorded in pytest-cov on PyPI: 21 breaking changes in 5 versions. Below, its 5 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 7.1.0, released March 21, 2026. Source repository
Its 6.0.0 release drops Python 3.8. Python end of life dates.
- From 6.0.0 to 7.1.0: 11 breaking changes in 2 versions.
- From 4.0.0 to 7.1.0: 17 breaking changes in 4 versions.
pytest-cov 7.1.0 breaking changes
- Behavior changed
--cov-fail-under
Total coverage counts no longer vary with reporting settings, so --cov-fail-under may now pass or fail differently than before for some reports. Review your fail-under threshold if you use reporting options. github.com
pytest-cov 7.0.0 breaking changes
- Removed
pytest_cov.compat
pytest_cov.compat was removed in pytest-cov 7.0.0 pypi.org - Removed
pytest_cov.embed
pytest_cov.embed was removed in pytest-cov 7.0.0 pypi.org - Removed
pytest_cov.engine.cleanup
pytest_cov.engine.cleanup was removed in pytest-cov 7.0.0 pypi.org - Removed
pytest_cov.engine.CovController.set_env
CovController.set_env was removed in pytest-cov 7.0.0 pypi.org - Removed
pytest_cov.engine.CovController.unset_env
CovController.unset_env was removed in pytest-cov 7.0.0 pypi.org - Removed
pytest_cov.plugin.compat
pytest_cov.plugin.compat was removed in pytest-cov 7.0.0 pypi.org - Removed
pytest_cov.plugin.CovPlugin.pytest_runtest_setup
CovPlugin.pytest_runtest_setup was removed in pytest-cov 7.0.0 pypi.org - Removed
pytest_cov.plugin.CovPlugin.pytest_runtest_teardown
CovPlugin.pytest_runtest_teardown was removed in pytest-cov 7.0.0 pypi.org - Removed
pytest_cov.plugin.embed
pytest_cov.plugin.embed was removed in pytest-cov 7.0.0 pypi.org - Behavior changed
Package metadata now lives entirely in pyproject.toml and the build uses hatchling; this affects how the package is built, not how code calling it behaves. github.com
pytest-cov 6.0.0 breaking changes
- Removed
Support for Python 3.8 was dropped because it is end of life. Use a newer supported Python version. github.com - Removed
pytest_cov.plugin.CoverageError
pytest_cov.plugin.CoverageError was removed in pytest-cov 6.0.0 pypi.org - Removed
pytest_cov.plugin.PytestCovWarning
pytest_cov.plugin.PytestCovWarning was removed in pytest-cov 6.0.0 pypi.org - Behavior changed
The fail-under check now performs the same comparison as coverage report, using the precision from the coverage configuration. Check your fail-under threshold if results shift. github.com
pytest-cov 5.0.0 breaking changes
- Removed
Support for xdist rsync is removed in this release. The changelog also describes it as deprecated, so code relying on rsync should move to another xdist setup. github.com - Removed
pytest_cov.engine.StringIO
pytest_cov.engine.StringIO was removed in pytest-cov 5.0.0 pypi.org
pytest-cov 4.0.0 breaking changes
- Removed
pytest-cov no longer supports multiprocessing. Users should migrate to coverage's builtin multiprocessing support by setting concurrency = multiprocessing, parallel = true and sigterm = true in their .coveragerc. github.com - Removed
pytest_cov.compat.hookwrapper
pytest_cov.compat.hookwrapper was removed in pytest-cov 4.0.0 pypi.org - Removed
pytest_cov.embed.multiprocessing_finish
pytest_cov.embed.multiprocessing_finish was removed in pytest-cov 4.0.0 pypi.org - Removed
pytest_cov.embed.multiprocessing_start
pytest_cov.embed.multiprocessing_start was removed in pytest-cov 4.0.0 pypi.org
Related packages
- pytest-asyncio
- pytest-django
- pytest-env
- pytest-github-actions-annotate-failures
- pytest-mock
- pytest-rerunfailures
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.