fix(deps): update dependency pytest-cov to v7 #42

Open
renovate wants to merge 1 commit from renovate/pytest-cov-7.x into main
Collaborator

This PR contains the following updates:

Package Change Age Confidence
pytest-cov (changelog) >=6.0.0,<7.0.0>=7.1.0,<7.2.0 age confidence

Release Notes

pytest-dev/pytest-cov (pytest-cov)

v7.1.0

Compare Source

  • Fixed total coverage computation to always be consistent, regardless of reporting settings.
    Previously some reports could produce different total counts, and consequently can make --cov-fail-under behave different depending on
    reporting options.
    See #&#8203;641 <https://github.com/pytest-dev/pytest-cov/issues/641>_.

  • Improve handling of ResourceWarning from sqlite3.

    The plugin adds warning filter for sqlite3 ResourceWarning unclosed database (since 6.2.0).
    It checks if there is already existing plugin for this message by comparing filter regular expression.
    When filter is specified on command line the message is escaped and does not match an expected message.
    A check for an escaped regular expression is added to handle this case.

    With this fix one can suppress ResourceWarning from sqlite3 from command line::

    pytest -W "ignore:unclosed database in <sqlite3.Connection object at:ResourceWarning" ...

  • Various improvements to documentation.
    Contributed by Art Pelling in #&#8203;718 <https://github.com/pytest-dev/pytest-cov/pull/718>_ and
    "vivodi" in #&#8203;738 <https://github.com/pytest-dev/pytest-cov/pull/738>.
    Also closed #&#8203;736 <https://github.com/pytest-dev/pytest-cov/issues/736>
    .

  • Fixed some assertions in tests.
    Contributed by in Markéta Machová in #&#8203;722 <https://github.com/pytest-dev/pytest-cov/pull/722>_.

  • Removed unnecessary coverage configuration copying (meant as a backup because reporting commands had configuration side-effects before coverage 5.0).

v7.0.0

Compare Source

  • Dropped support for subprocesses measurement.

    It was a feature added long time ago when coverage lacked a nice way to measure subprocesses created in tests.
    It relied on a .pth file, there was no way to opt-out and it created bad interations
    with coverage's new patch system <https://coverage.readthedocs.io/en/latest/config.html#run-patch>_ added
    in 7.10 <https://coverage.readthedocs.io/en/7.10.6/changes.html#version-7-10-0-2025-07-24>_.

    To migrate to this release you might need to enable the suprocess patch, example for .coveragerc:

    .. code-block:: ini

    [run]
    patch = subprocess

    This release also requires at least coverage 7.10.6.

  • Switched packaging to have metadata completely in pyproject.toml and use hatchling <https://pypi.org/project/hatchling/>_ for
    building.
    Contributed by Ofek Lev in #&#8203;551 <https://github.com/pytest-dev/pytest-cov/pull/551>_
    with some extras in #&#8203;716 <https://github.com/pytest-dev/pytest-cov/pull/716>_.

  • Removed some not really necessary testing deps like six.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [pytest-cov](https://github.com/pytest-dev/pytest-cov) ([changelog](https://pytest-cov.readthedocs.io/en/latest/changelog.html)) | `>=6.0.0,<7.0.0` → `>=7.1.0,<7.2.0` | ![age](https://developer.mend.io/api/mc/badges/age/pypi/pytest-cov/7.1.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/pytest-cov/6.3.0/7.1.0?slim=true) | --- ### Release Notes <details> <summary>pytest-dev/pytest-cov (pytest-cov)</summary> ### [`v7.1.0`](https://github.com/pytest-dev/pytest-cov/blob/HEAD/CHANGELOG.rst#710-2026-03-21) [Compare Source](https://github.com/pytest-dev/pytest-cov/compare/v7.0.0...v7.1.0) - Fixed total coverage computation to always be consistent, regardless of reporting settings. Previously some reports could produce different total counts, and consequently can make --cov-fail-under behave different depending on reporting options. See `#&#8203;641 <https://github.com/pytest-dev/pytest-cov/issues/641>`\_. - Improve handling of ResourceWarning from sqlite3. The plugin adds warning filter for sqlite3 `ResourceWarning` unclosed database (since 6.2.0). It checks if there is already existing plugin for this message by comparing filter regular expression. When filter is specified on command line the message is escaped and does not match an expected message. A check for an escaped regular expression is added to handle this case. With this fix one can suppress `ResourceWarning` from sqlite3 from command line:: pytest -W "ignore:unclosed database in \<sqlite3.Connection object at:ResourceWarning" ... - Various improvements to documentation. Contributed by Art Pelling in `#&#8203;718 <https://github.com/pytest-dev/pytest-cov/pull/718>`\_ and "vivodi" in `#&#8203;738 <https://github.com/pytest-dev/pytest-cov/pull/738>`*. Also closed `#&#8203;736 <https://github.com/pytest-dev/pytest-cov/issues/736>`*. - Fixed some assertions in tests. Contributed by in Markéta Machová in `#&#8203;722 <https://github.com/pytest-dev/pytest-cov/pull/722>`\_. - Removed unnecessary coverage configuration copying (meant as a backup because reporting commands had configuration side-effects before coverage 5.0). ### [`v7.0.0`](https://github.com/pytest-dev/pytest-cov/blob/HEAD/CHANGELOG.rst#700-2025-09-09) [Compare Source](https://github.com/pytest-dev/pytest-cov/compare/v6.3.0...v7.0.0) - Dropped support for subprocesses measurement. It was a feature added long time ago when coverage lacked a nice way to measure subprocesses created in tests. It relied on a `.pth` file, there was no way to opt-out and it created bad interations with `coverage's new patch system <https://coverage.readthedocs.io/en/latest/config.html#run-patch>`\_ added in `7.10 <https://coverage.readthedocs.io/en/7.10.6/changes.html#version-7-10-0-2025-07-24>`\_. To migrate to this release you might need to enable the suprocess patch, example for `.coveragerc`: .. code-block:: ini \[run] patch = subprocess This release also requires at least coverage 7.10.6. - Switched packaging to have metadata completely in `pyproject.toml` and use `hatchling <https://pypi.org/project/hatchling/>`\_ for building. Contributed by Ofek Lev in `#&#8203;551 <https://github.com/pytest-dev/pytest-cov/pull/551>`\_ with some extras in `#&#8203;716 <https://github.com/pytest-dev/pytest-cov/pull/716>`\_. - Removed some not really necessary testing deps like `six`. </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yMjAuMCIsInVwZGF0ZWRJblZlciI6IjQzLjIyMC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
fix(deps): update dependency pytest-cov to v7
Some checks failed
ghcr-images / build-and-push (pull_request) Failing after 23s
ced1a4399a
Some checks failed
ghcr-images / build-and-push (pull_request) Failing after 23s
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/pytest-cov-7.x:renovate/pytest-cov-7.x
git switch renovate/pytest-cov-7.x

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff renovate/pytest-cov-7.x
git switch renovate/pytest-cov-7.x
git rebase main
git switch main
git merge --ff-only renovate/pytest-cov-7.x
git switch renovate/pytest-cov-7.x
git rebase main
git switch main
git merge --no-ff renovate/pytest-cov-7.x
git switch main
git merge --squash renovate/pytest-cov-7.x
git switch main
git merge --ff-only renovate/pytest-cov-7.x
git switch main
git merge renovate/pytest-cov-7.x
git push origin main
Sign in to join this conversation.
No description provided.