Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Aug 18, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
coverage 7.9.2 -> 7.10.1 age adoption passing confidence

Release Notes

nedbat/coveragepy (coverage)

v7.10.1

Compare Source

  • Fix: the exclusion for if TYPE_CHECKING: was wrong: it marked the branch
    as partial, but it should have been a line exclusion so the entire clause
    would be excluded. Improves issue 831_.

  • Fix: changed where .pth files are written for patch = subprocess, closing
    issue 2006_.

.. _issue 2006:https://github.com/nedbat/coveragepy/issues/20066

.. _changes_7-10-0:

v7.10.0

Compare Source

  • A new configuration option: ":ref:config_run_patch" specifies named patches
    to work around some limitations in coverage measurement. These patches are
    available:

    • patch = _exit lets coverage save its data even when :func:os._exit() <python:os._exit> is used to abruptly end the process. This closes
      long-standing issue 310_ as well as its duplicates: issue 312, issue 1673, issue 1845, and issue 1941.

    • patch = subprocess measures coverage in Python subprocesses created
      with :mod:subprocess, :func:os.system, or one of the :func:execv <python:os.execl> or :func:spawnv <python:os.spawnl> family of
      functions. Closes old issue 367, its duplicate issue 378 and old
      issue 689_.

    • patch = execv adjusts the :func:execv <python:os.execl> family of
      functions to save coverage data before ending the current program and
      starting the next. Not available on Windows. Closes issue 43_ after 15
      years!

  • The HTML report now dimly colors subsequent lines in multi-line statements.
    They used to have no color. This gives a better indication of the amount of
    code missing in the report. Closes issue 1308_.

  • Two new exclusion patterns are part of the defaults: ... is automatically
    excluded as a line and if TYPE_CHECKING: is excluded as a branch. Closes
    issue 831_.

  • A new command-line option: --save-signal=USR1 specifies a signal that
    coverage.py will listen for. When the signal is sent, the coverage data will
    be saved. This makes it possible to save data from within long-running
    processes. Thanks, Arkady Gilinsky <pull 1998_>_.

  • A new configuration option: ":ref:config_report_partial_also" is a list of
    regexes to add as pragmas for partial branches. This parallels the
    ":ref:config_report_exclude_also" setting for adding line exclusion
    patterns.

  • A few file path configuration settings didn't allow for tilde expansion:
    :ref:config_json_output, :ref:config_lcov_output and
    :ref:config_run_debug_file. This is now fixed.

  • Wheels are included for 3.14 now that 3.14 rc1 is available.

  • We no longer ship a PyPy-specific wheel. PyPy will install the pure-Python
    wheel. Closes issue 2001_.

  • In the very unusual situation of not having a current frame, coverage no
    longer crashes when using the sysmon core, fixing issue 2005_.

.. _issue 43:https://github.com/nedbat/coveragepy/issues/433
.. _issue 310https://github.com/nedbat/coveragepy/issues/31010
.. _issue 31https://github.com/nedbat/coveragepy/issues/312312
.. _issue 3https://github.com/nedbat/coveragepy/issues/367/367
.. _issue https://github.com/nedbat/coveragepy/issues/378s/378
.. _issuehttps://github.com/nedbat/coveragepy/issues/689es/689
.. _issuhttps://github.com/nedbat/coveragepy/issues/831ues/831
.. _issuhttps://github.com/nedbat/coveragepy/issues/1308ues/1308
.. _isshttps://github.com/nedbat/coveragepy/issues/1673sues/1673
.. _ishttps://github.com/nedbat/coveragepy/issues/1845ssues/1845
.. _ihttps://github.com/nedbat/coveragepy/issues/1941issues/1941
.. [https://github.com/nedbat/coveragepy/pull/1998](https://redirect.github.com/nedbat/coveragepy/pull/1998)py/pull/1998
.. [https://github.com/nedbat/coveragepy/issues/2001](https://redirect.github.com/nedbat/coveragepy/issues/2001)y/issues/2001
.. https://github.com/nedbat/coveragepy/issues/2005py/issues/2005

.. _changes_7-9-2:


Configuration

📅 Schedule: 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 is behind base branch, 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Aug 18, 2025
Copy link

codecov bot commented Aug 18, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1008   +/-   ##
=======================================
  Coverage   97.33%   97.33%           
=======================================
  Files          21       21           
  Lines        1686     1686           
=======================================
  Hits         1641     1641           
  Misses         45       45           
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Benchmark

Benchmark suite Current: 7a54c8e Previous: 9b4433e Ratio
benchmarks/test_1000x.py::test_1000x_reads 0.7759403355788175 iter/sec (stddev: 0.05813340459641867) 0.7995158174423993 iter/sec (stddev: 0.06379783359306519) 1.03
benchmarks/test_1000x.py::test_1000x_writes 0.7179586155862812 iter/sec (stddev: 0.21323455143622963) 0.7014607284145795 iter/sec (stddev: 0.25635215193285416) 0.98
benchmarks/test_standard.py::test_standard 0.7180398486941535 iter/sec (stddev: 0.06842757348434264) 0.7141429245705782 iter/sec (stddev: 0.08484971725232054) 0.99

This comment was automatically generated by workflow using github-action-benchmark.

@noahnu noahnu enabled auto-merge (squash) August 18, 2025 14:40
@noahnu noahnu merged commit ca9e01f into main Aug 18, 2025
19 checks passed
@noahnu noahnu deleted the renovate/coverage-7.x-lockfile branch August 18, 2025 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant