Version 7.16.2 — 2026-09-27
- Fix: on Python 3.14 and later, a
forloop completing immediately before a function return could mistakenly report an uncovered branch. This is now fixed, closing issue 2168. - Fix: on Python 3.14 and later, the
elseclause of atrywhose body is awithstatement could incorrectly be reported as covered when thewithraised. This is now fixed, closing issue 2289. - Fix: with
dynamic_context = test_function, test methods written as@staticmethodor@classmethodwere not given a context of their own. Now they are, on Python 3.11 and later. Closes issue 1923.
➡️ PyPI page: coverage 7.16.2.
➡️ To install: python3 -m pip install coverage==7.16.2