Coverage 7.10.0: patch
Briefly

Coverage 7.10 introduces significant updates, including a configuration option to specify named patches for better coverage measurement. The most notable patches include support for subprocesses, which automates coverage measurement for subprocesses created by various functions without complicated setup. Additionally, patches for os._exit() and execv functions have been added to ensure that coverage data is preserved even during abrupt program terminations. These enhancements address long-standing issues, improving user experience and functionality significantly.
The major new feature is a configuration option that allows specifying named patches which coverage can use to monkey-patch behavior that interferes with coverage measurement.
The latest release of Coverage feels like a Christmas present! The native support for Python subprocesses is so good!
Now, patch = subprocess will do this for you automatically, handling subprocesses created by various functions and cleaning itself up when the program ends.
This patch makes it possible to collect coverage data from programs that end immediately and abruptly, which was previously impossible.
Read at Nedbatchelder
[
|
]