coverage breaking changes
Updated December 4, 2026
On this page
Latest version 7.18.0, released November 29, 2026. Source repository
Its 7.17.0 release drops Python 3.10. Python end of life dates.
- From 6.0 to 7.17.4: 111 breaking changes in 12 versions.
- From 5.0 to 7.17.4: 208 breaking changes in 15 versions.
coverage 7.17.4 breaking changes
- Behavior changed
Functions and classes in the JSON report now carry only the contexts for their own lines, not for every line in the file. Code that reads those contexts may see fewer entries. github.com - Configuration changed
The first entry in a [paths] list must be an actual file path. A wildcard there was previously ignored silently and is now reported as a configuration error, so such configs must be fixed. github.com - Signature changed
coverage.control.JsonReporter.make_region_data
Was def make_region_data(self, coverage_data: CoverageData, narrowed_analysis: Analysis, start_line: int) -> JsonObj; now def make_region_data(self, coverage_data: CoverageData, narrowed_analysis: Analysis, start_line: int, lines... pypi.org - Signature changed
coverage.jsonreport.JsonReporter.make_region_data
Was def make_region_data(self, coverage_data: CoverageData, narrowed_analysis: Analysis, start_line: int) -> JsonObj; now def make_region_data(self, coverage_data: CoverageData, narrowed_analysis: Analysis, start_line: int, lines... pypi.org
coverage 7.17.3 breaking changes
- Behavior changed
Functions and classes with the same name, such as a property getter and setter, now get an @<line number> suffix in the JSON report instead of only the last one being kept. Code that reads these keys by name may need to handle the suffixed... github.com
coverage 7.17.1 breaking changes
- Removed
coverage.cmdline.display_covered
coverage.cmdline.display_covered was removed in coverage 7.17.1 pypi.org - Behavior changed
--fail-under
The comparison and failure message for --fail-under now use at least the threshold's decimal precision, so some totals that passed or failed before may now have different results. github.com - Behavior changed
--source
Passing the file system root as --source used to measure no files silently. It now fails with an error, so pass a real source directory instead. github.com - Signature changed
coverage.CoverageData.__init__
Was def __init__(self, basename: FilePath | None = None, suffix: str | bool | None = None, no_disk: bool = False, warn: TWarnFn | None = None, debug: TDebugCtl | None = None) -> None; now def __init__(self, basename: FilePath | None =... pypi.org - Signature changed
coverage.html.IncrementalChecker.can_skip_file
Was def can_skip_file(self, data: CoverageData, fr: FileReporter, rootname: str) -> bool; now def can_skip_file(self, data: CoverageData, ftr: FileToReport) -> bool. pypi.org - Signature changed
coverage.sqldata.CoverageData.__init__
Was def __init__(self, basename: FilePath | None = None, suffix: str | bool | None = None, no_disk: bool = False, warn: TWarnFn | None = None, debug: TDebugCtl | None = None) -> None; now def __init__(self, basename: FilePath | None =... pypi.org - Signature changed
coverage.sqldata.SqliteDb.__init__
Was def __init__(self, filename: str, debug: TDebugCtl, no_disk: bool = False) -> None; now def __init__(self, filename: str, debug: TDebugCtl, *, no_disk: bool = False, read_only: bool = False) -> None. pypi.org - Signature changed
coverage.sqlitedb.SqliteDb.__init__
Was def __init__(self, filename: str, debug: TDebugCtl, no_disk: bool = False) -> None; now def __init__(self, filename: str, debug: TDebugCtl, *, no_disk: bool = False, read_only: bool = False) -> None. pypi.org - Signature changed
coverage.sysmon.CodeInfo.__init__
Was def __init__(self, tracing: bool, file_data: TTraceFileData | None, byte_to_line: dict[TOffset, TLineNo] | None, branch_resolver: BranchArcResolver | None) -> None; now def __init__(self, tracing: bool, file_data: TTraceFileData |... pypi.org
coverage 7.17.0 breaking changes
- Removed
Python 3.10 is no longer supported. Users on Python 3.10 must stay on coverage 7.16.2 or upgrade their Python version. github.com - Removed
coverage.config.TomlDecodeError
coverage.config.TomlDecodeError was removed in coverage 7.17.0 pypi.org - Removed
coverage.control.SummaryReporter.fr_analyses
SummaryReporter.fr_analyses was removed in coverage 7.17.0 pypi.org - Removed
coverage.misc.import_third_party
coverage.misc.import_third_party was removed in coverage 7.17.0 pypi.org - Removed
coverage.report.SummaryReporter.fr_analyses
SummaryReporter.fr_analyses was removed in coverage 7.17.0 pypi.org - Removed
coverage.tomlconfig.env
coverage.tomlconfig.env was removed in coverage 7.17.0 pypi.org - Removed
coverage.tomlconfig.has_tomllib
coverage.tomlconfig.has_tomllib was removed in coverage 7.17.0 pypi.org - Removed
coverage.tomlconfig.import_third_party
coverage.tomlconfig.import_third_party was removed in coverage 7.17.0 pypi.org - Removed
coverage.tomlconfig.TomlDecodeError
coverage.tomlconfig.TomlDecodeError was removed in coverage 7.17.0 pypi.org - Behavior changed
The XML, text and Markdown summary reports and coverage debug data now replace non-printable characters in names, so output for files with control characters in their names differs. github.com
And 2 more in this version. Sign up to see every change
coverage 7.16.2 breaking changes
- Signature changed
coverage.files.GlobMatcher.match
Was def match(self, fpath: str) -> bool; now def match(self, fpath: str, /) -> bool. pypi.org - Signature changed
coverage.files.Matcher.match
Was def match(self, s: str) -> bool; now def match(self, s: str, /) -> bool. pypi.org - Signature changed
coverage.files.ModuleMatcher.match
Was def match(self, module_name: str) -> bool; now def match(self, module_name: str, /) -> bool. pypi.org - Signature changed
coverage.files.TreeMatcher.match
Was def match(self, fpath: str) -> bool; now def match(self, fpath: str, /) -> bool. pypi.org - Signature changed
coverage.inorout.GlobMatcher.match
Was def match(self, fpath: str) -> bool; now def match(self, fpath: str, /) -> bool. pypi.org - Signature changed
coverage.inorout.ModuleMatcher.match
Was def match(self, module_name: str) -> bool; now def match(self, module_name: str, /) -> bool. pypi.org - Signature changed
coverage.inorout.TreeMatcher.match
Was def match(self, fpath: str) -> bool; now def match(self, fpath: str, /) -> bool. pypi.org
coverage 7.16.0 breaking changes
- Removed
coverage.sqldata.AnyCallable
coverage.sqldata.AnyCallable was removed in coverage 7.16.0 pypi.org - Behavior changed
A [paths] pattern is now replaced only once, in the leading portion of the path, instead of everywhere in the path. Review [paths] settings that matched text in the middle of paths. github.com - Behavior changed
When combining files, path separators are now converted to the local style automatically. Check combined results if your [paths] configuration relied on the old separators. github.com - Signature changed
coverage.collector.Collector.switch_context
Was def switch_context(self, new_context: str | None) -> None; now def switch_context(self, new_context: str | None) -> str | None. pypi.org - Signature changed
coverage.collector.Tracer.switch_context
Was switch_context: Callable[[str | None], None] | None; now switch_context: Callable[[str | None], str | None] | None. pypi.org - Signature changed
coverage.control.Collector.switch_context
Was def switch_context(self, new_context: str | None) -> None; now def switch_context(self, new_context: str | None) -> str | None. pypi.org - Signature changed
coverage.control.Coverage.switch_context
Was def switch_context(self, new_context: str) -> None; now def switch_context(self, new_context: str) -> str | None. pypi.org - Signature changed
coverage.core.PyTracer.switch_context
Was switch_context: Callable[[str | None], None] | None; now switch_context: Callable[[str | None], str | None] | None. pypi.org - Signature changed
coverage.Coverage.switch_context
Was def switch_context(self, new_context: str) -> None; now def switch_context(self, new_context: str) -> str | None. pypi.org - Signature changed
coverage.CoverageData.set_context
Was def set_context(self, context: str | None) -> None; now def set_context(self, context: str | None) -> str | None. pypi.org
And 2 more in this version. Sign up to see every change
Older versions
17 older versions, each with its first changes. Sign up to see every change
Show 17 older versions
coverage 7.15.4 breaking changes
- Removed
coverage.html.escape
coverage.html.escape was removed in coverage 7.15.4 pypi.org - Signature changed
coverage.FileReporter.__eq__
Was def __eq__(self, other: Any) -> bool; now def __eq__(self, other: object) -> bool. pypi.org
And 1 more in this version.
coverage 7.15.3 breaking changes
- Renamed
coverage.sqldata.NumbitsUnionAgg
Use coverage.numbits.NumbitsUnionAgg instead. pypi.org
coverage 7.15.1 breaking changes
- Removed
coverage.bytecode.always_jumps
coverage.bytecode.always_jumps was removed in coverage 7.15.1 pypi.org - Removed
coverage.bytecode.branch_trails
coverage.bytecode.branch_trails was removed in coverage 7.15.1 pypi.org
And 13 more in this version.
coverage 7.14.2 breaking changes
- Removed
Wheels are no longer distributed for Python 3.13 free-threaded, so installs on that build must use a source build or a different Python version. github.com - Behavior changed
Some messages that were written to stdout are now written to stderr, so code that captures stdout may see different output. github.com
And 4 more in this version.
coverage 7.0.0 breaking changes
- Removed
coverage.cmdline.CoverageConfig.note
CoverageConfig.note was removed in coverage 7.0.0 pypi.org - Removed
coverage.cmdline.Numbers.simple_repr_ignore
Numbers.simple_repr_ignore was removed in coverage 7.0.0 pypi.org
And 33 more in this version.
coverage 7.0.0b1 breaking changes
- Removed
[run] note
The deprecated [run] note setting has been completely removed. Delete it from your configuration. github.com - Behavior changed
Reporting operations now implicitly remap file paths with the [paths] setting within a single data file. Check report output if you rely on the old paths. github.com
And 4 more in this version.
coverage 6.0 breaking changes
- Removed
coverage.backward
coverage.backward was removed in coverage 6.0 pypi.org - Removed
coverage.cmdline.output_encoding
coverage.cmdline.output_encoding was removed in coverage 6.0 pypi.org
And 90 more in this version.
coverage 6.0b1 breaking changes
- Removed
Python 2.7, PyPy 2 and Python 3.5 are no longer supported. Users on these runtimes must stay on an older coverage release. github.com - Behavior changed
Report file names are generated differently and the HTML report now uses SHA-3-256 instead of MD5 for fingerprinting. Tools that depend on the old HTML file names or hashes may break. github.com
And 2 more in this version.
coverage 5.6b1 breaking changes
- Behavior changed
Code from third-party packages, including venvs in the current directory, is no longer reported in coverage results. Users relying on those reports must account for the change. github.com
coverage 5.0 breaking changes
- Behavior changed
Release 5.0 has nothing new beyond 5.0b2; see the major changes summary for changes since 4.5.x. github.com - Signature changed
coverage.annotate.AnnotateReporter
Was class AnnotateReporter(Reporter); now class AnnotateReporter(object). pypi.org
And 35 more in this version.
coverage 5.0b2 breaking changes
- Behavior changed
[paths]
If more than one list of patterns is given, the first one that matches is used. github.com - Behavior changed
coverage.Coverage
Passing data_file=None prevents writing any data file; previously it fell back to .coverage. github.com
coverage 5.0a8 breaking changes
- Renamed
CoverageData.set_query_context
Use set_query_context for one exact-match string or set_query_contexts for a list of regular expressions. github.com - Signature changed
--contexts
The --contexts option uses regular expressions instead of filename-style wildcards. github.com
coverage 5.0a7 breaking changes
- Behavior changed
Coverage.report
Arguments passed to reporting methods now affect only that call and no longer persist on the Coverage object. github.com
coverage 5.0a6 breaking changes
- Removed
The JSON data file code was removed since SQLite storage replaces it. github.com - Behavior changed
--ignore-errors
Files that fail to parse as Python are always reported as warnings, even with --ignore-errors. github.com
And 1 more in this version.
coverage 5.0a5 breaking changes
- Removed
Coverage.py no longer supports Python 3.4. github.com - Removed
CoverageData.filename
Use data_filename() to get the storage file name, and base_filename() for the original name before parallel suffixes. github.com
And 1 more in this version.
coverage 5.0a2 breaking changes
- Removed
The .coverage data file is now an SQLite database. Set COVERAGE_STORAGE=json to keep the old format for now; you may need parallel=true where you did not before. github.com - Removed
pickle2json
pickle2json, used to convert v3 data files to v4, has been removed. github.com
coverage 5.0a1 breaking changes
- Removed
Coverage.py no longer supports Python 2.6 or 3.3; users on those runtimes must stay on older releases. github.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.