Version 7.17.4 — 2026-11-20
- Fix: since 7.13.1, a parallel data file could be named with the hash of different data than it held, for example when nbval records a notebook’s coverage into pytest-cov’s data file. Combining could then skip it as a duplicate and lose its data. Now the hash comes from the data in the file when it is saved. Fixes issue 2370 with pull 2387.
- Fix: lines or arcs recorded by other threads while data was being flushed (for example during
Coverage.get_data(),Coverage.save(), or dynamic context switches) could be lost. This is now fixed, closing issue 2384. - Fix: on Python 3.14 with the pure-Python tracer (
COVERAGE_CORE=pytrace) and branch measurement, a function that returned right after anexcept*handler recorded an arc with no line number. Reporting on the data then failed with aTypeError. Now that arc is not recorded. pull 2403. - Fix: in the JSON report with
show_contexts, each function and class had the contexts for every line in the file. Now they only have the contexts for their own lines. Closes issue 2374. - The first entry in a
[paths]list is the result path, and must be an actual file path. If it contained wildcards, the rule could never be used and was silently ignored. It is now reported as a configuration error. Closes issue 1531. - Fix: a configuration file (
.coveragerc,setup.cfg,tox.iniorpyproject.toml) saved with a UTF-8 byte order mark couldn’t be read. Now a leading BOM is ignored. pull 2388.
➡️ PyPI page: coverage 7.17.4.
➡️ To install: python3 -m pip install coverage==7.17.4