Repository navigation
Update dependency coverage to ~=7.18.0 - #1249
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
~=7.17.0→~=7.18.0Release Notes
coveragepy/coveragepy (coverage)
v7.18.0Compare Source
Feature:
[run] source(and--source) entries can now be globpatterns, for example
packages/*/src. A pattern is expanded to thedirectories it matches when measurement starts, so monorepo packages are
measured, and their un-executed files reported, without listing each one.
A pattern that matches nothing issues a warning. Closes
issue 2400_.Feature: two new methods for plug-ins to use in their test suites, as
requested in
issue 920_. The :meth:.Coverage.get_pluginsmethod returnsthe currently registered plug-ins, including disabled ones. The
:meth:
.CoveragePlugin.is_enabledmethod reports their current enabledstate.
Fix:
lcovoutput now marks functions as starting on the firstnon-signature line, fixing errors about "inconsistent" tracefiles during
combination. Closed
issue 2394_.Fix: XML and LCOV reports now honor the report context filter when
calculating coverage.
Fix: when two source roots each contained a package with the same name, the
XML report kept only one of the same-named files while still counting the
lines of both, so
lines-validdisagreed with the<line>elements inthe document. Closes
issue 1291_.Fix: with
[html] show_contextsenabled, re-running the HTML report keptpages whose lines were unchanged, even when the contexts were different, so
they showed stale contexts. Closes
issue 2372_.Fix: with the C tracer and branch coverage, an error while starting to trace
a function call (for example,
RecursionErrorfromshould_tracewhen anew file is entered near the recursion limit) left the previous call's file
in place. If the exception was caught, the function's return recorded arcs in
that other file, which could report lines as executed that never ran. Now a
call that fails to start records nothing, closing
issue 2385_.Fix: missing branch explanations for exits from a
finallyclause couldincorrectly say a condition was always true, even when it was false while an
exception or return was pending. These explanations now describe the missing
jump without attributing it solely to the condition. Fixes
issue 867_.Fix: if a directory for the data file or a report couldn't be created, the
error was a raw traceback. Now the error message names the file that was
being written.
Perf: line coverage reports are faster when many measurement contexts
cover the same file.
.. _issue 867: #867
.. _issue 920: #920
.. _issue 1291: nedbat#1291
.. _issue 2372: #2372
.. _issue 2385: #2385
.. _issue 2394: #2394
.. _issue 2400: #2400
.. _changelog-7.17.5:
v7.17.5Compare Source
Fix: the reporting commands (
report,html,xml,json,lcov, andannotate) used to put the current directory first onsys.path, to let plugins import local files. Now the current directoryis added only if plugins are configured, and at the end of
sys.path, solocal files can't replace other modules.
Fix: local plugins interfered with
eraseandcombineas reported inissue 1726_ andissue 1979. This is now fixed (pull 2253).Fix: with the sysmon core on Python 3.14, starting and stopping a second
Coverage object stopped the first one from measuring code it had already
run. Closes
issue 2302_.Fix: combining data files failed with "Conflicting file tracer name" when
one data file only listed a file without measuring it (as unexecuted source
files are) and another measured the same file with a plugin. This happened
in pytest-cov's distributed testing. Now a file with no measurements doesn't
conflict with a plugin's measurements. Fixes
issue 2358_.Fix: saving data while another thread started measuring a new file handled
by a plugin could fail with "dictionary changed size during iteration".
Fixed in
pull 2382_.Fix: a keyboard interrupt at just the wrong moment could leave a lock locked
and prevent saving data, as reported in
issue 2383. This is now fixed(
pull 2396)... _issue 1726: #1726
.. _issue 1979: #1979
.. _pull 2253: #2253
.. _issue 2302: #2302
.. _issue 2358: #2358
.. _pull 2382: #2382
.. _issue 2383: #2383
.. _pull 2396: #2396
.. _changelog-7.17.4:
Configuration
📅 Schedule: (UTC)
* 0-3 * * *)🚦 Automerge: Enabled.
♻ 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.
This PR was generated by Mend Renovate. View the repository job log.