Results 963 comments of Ned Batchelder

BTW, the branch with the exploration is here: https://github.com/nedbat/coveragepy/tree/nedbat/parallel-reports-1504-metacov

I can see why this would be useful, but I don't see a way to collect that information.

> git checkout e5c6df77d This commit doesn't seem to be in the repo anymore, and when I ran nox on trunk, I got: ``` nox > Running session coverage_report nox...

OK, I got the commit, but I still have 100% coverage: https://gist.github.com/nedbat/3ad003d2c6428282e3249fd33a5f8e2d

Currently there is not a pragma comment that means "ignore the rest of this." The simplest approach that you haven't mentioned is to put that tail of the function into...

As of commit 1fe897d740ebc67bd1f6493bcc889846f16abf10, you can do this with a multi-line exclusion regex if you are careful. You need to come up with a regex that matches the region you...

This is now released as part of [coverage 7.6.0](https://pypi.org/project/coverage/7.6.0).

The usual way to do this is to use the ``--source=`` option to limit coverage.py's focus to your own directory: https://coverage.readthedocs.io/en/7.4.1/source.html#execution

sys.monitoring support is in [coverage.py 7.4.0](https://coverage.readthedocs.io/en/7.4.1/changes.html#version-7-4-0-2023-12-27), though it only makes line coverage faster, not branch coverage. I'm still working on the support that will be faster for branch coverage.