Version 7.17.5 — 2026-11-23
- 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 directory is added only if plugins are configured, and at the end ofsys.path, so local files can’t replace other modules. - Fix: local plugins interfered with
eraseandcombineas reported in issue 1726. 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).
➡️ PyPI page: coverage 7.17.5.
➡️ To install: python3 -m pip install coverage==7.17.5