Upgrading coverage 4 to 5
Unknown4.5.4 → 5.5
Fetching 22 releases from GitHub…0 / 22
UnknownUpgrade verdict
DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
Python requirement changed in 5.0a5: >=2.6, !=3.0.*, !=3.1.*, !=3.2.*, <4 → >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*, <4.
API changes
Generated by DepDelta from published Python source. Not mixed with prose notes.
- removed:
export enable_aspectlib_maybe
- changed:
class AnnotateReporter(Reporter) → class AnnotateReporter(object) - changed:
constructor AnnotateReporter(coverage, config) → constructor AnnotateReporter(coverage)
- removed:
class TestCase(unittest.TestCase) - removed:
function unittest_has(method) - removed:
method TestCase.assertCountEqual(s1, s2) - removed:
method TestCase.assertRaisesRegex(*args, **kwargs) - removed:
method TestCase.assertRegex(*args, **kwargs)
- added:
class SimpleNamespace - added:
constructor SimpleNamespace(**kwargs) - added:
function byte_to_int(byte) - added:
function code_object(fn) - added:
function format_local_datetime(dt) - added:
function to_string(b) - added:
variable path_types
- removed:
class CodeObjects(object) - removed:
constructor CodeObjects(code) - added:
function code_objects(code)
- removed:
method CoverageOptionParser.help_noop(error=…, topic=…, parser=…) - removed:
method CoverageScript.help(error=…, topic=…, parser=…) - changed:
constructor CoverageScript(_covpkg=…, _run_python_file=…, _run_python_module=…, _help_fn=…, _path_exists=…) → constructor CoverageScript() - added:
field Opts.context - added:
field Opts.contexts - added:
field Opts.json_pretty_print - added:
field Opts.keep - added:
field Opts.no_skip_covered - added:
field Opts.output_json - added:
field Opts.precision - added:
field Opts.show_contexts - added:
field Opts.skip_empty - added:
field Opts.sort - added:
function show_help(error=…, topic=…, parser=…) - added:
variable original_main
- removed:
class FileDisposition(object) - removed:
function should_start_context(frame) - removed:
method Collector.save_data(covdata) - changed:
constructor Collector(should_trace, check_include, timid, branch, warn, concurrency) → constructor Collector(should_trace, check_include, should_start_context, file_mapper, timid, branch, warn, concurrency) - added:
method Collector.cached_mapped_file(filename) - added:
method Collector.disable_plugin(disposition) - added:
method Collector.flush_data() - added:
method Collector.mapped_file_dict(d) - added:
method Collector.plugin_was_disabled(plugin) - added:
method Collector.use_data(covdata, context)
- changed:
method HandyConfigParser.read(filenames) → method HandyConfigParser.read(filenames, encoding=…) - added:
function config_files_to_try(config_file) - added:
method CoverageConfig.copy() - added:
method CoverageConfig.post_process() - added:
method CoverageConfig.post_process_file(path)
- added:
function combine_context_switchers(context_switchers) - added:
function qualname_from_frame(frame) - added:
function should_start_context_test_function(frame)
- removed:
function module_has_file(mod) - removed:
function module_is_namespace(mod) - removed:
method Coverage.use_cache(usecache) - changed:
constructor Coverage(data_file=…, data_suffix=…, cover_pylib=…, auto_data=…, timid=…, branch=…, config_file=…, source=…, omit=…, include=…, debug=…, concurrency=…) → constructor Coverage(data_file=…, data_suffix=…, cover_pylib=…, auto_data=…, timid=…, branch=…, config_file=…, source=…, source_pkgs=…, omit=…, include=…, debug=…, concurrency=…, check_preimported=…, context=…) - changed:
method Coverage.annotate(morfs=…, directory=…, ignore_errors=…, omit=…, include=…) → method Coverage.annotate(morfs=…, directory=…, ignore_errors=…, omit=…, include=…, contexts=…) - changed:
method Coverage.combine(data_paths=…, strict=…) → method Coverage.combine(data_paths=…, strict=…, keep=…) - changed:
method Coverage.html_report(morfs=…, directory=…, ignore_errors=…, omit=…, include=…, extra_css=…, title=…, skip_covered=…) → method Coverage.html_report(morfs=…, directory=…, ignore_errors=…, omit=…, include=…, extra_css=…, title=…, skip_covered=…, show_contexts=…, contexts=…, skip_empty=…, precision=…) - changed:
method Coverage.report(morfs=…, show_missing=…, ignore_errors=…, file=…, omit=…, include=…, skip_covered=…) → method Coverage.report(morfs=…, show_missing=…, ignore_errors=…, file=…, omit=…, include=…, skip_covered=…, contexts=…, skip_empty=…, precision=…, sort=…) - changed:
method Coverage.xml_report(morfs=…, outfile=…, ignore_errors=…, omit=…, include=…) → method Coverage.xml_report(morfs=…, outfile=…, ignore_errors=…, omit=…, include=…, contexts=…, skip_empty=…) - added:
function override_config(cov, **kwargs) - added:
method Coverage.json_report(morfs=…, outfile=…, ignore_errors=…, omit=…, include=…, contexts=…, pretty_print=…, show_contexts=…) - added:
method Coverage.switch_context(new_context) - added:
static method Coverage.current() - added:
variable Coverage
- removed:
class CoverageData(object) - removed:
class CoverageDataFiles(object) - removed:
constructor CoverageData(debug=…) - removed:
constructor CoverageDataFiles(basename=…, warn=…, debug=…) - removed:
function canonicalize_json_data(data) - removed:
function debug_main(args) - removed:
function pretty_data(data) - removed:
method CoverageData.add_arcs(arc_data) - removed:
method CoverageData.add_file_tracers(file_tracers) - removed:
method CoverageData.add_lines(line_data) - removed:
method CoverageData.add_run_info(**kwargs) - removed:
method CoverageData.add_to_hash(filename, hasher) - removed:
method CoverageData.arcs(filename) - removed:
method CoverageData.erase() - removed:
method CoverageData.file_tracer(filename) - removed:
method CoverageData.has_arcs() - removed:
method CoverageData.line_counts(fullpath=…) - removed:
method CoverageData.lines(filename) - removed:
method CoverageData.measured_files() - removed:
method CoverageData.read_file(filename) - removed:
method CoverageData.read_fileobj(file_obj) - removed:
method CoverageData.run_infos() - removed:
method CoverageData.touch_file(filename, plugin_name=…) - removed:
method CoverageData.update(other_data, aliases=…) - removed:
method CoverageData.write_file(filename) - removed:
method CoverageData.write_fileobj(file_obj) - removed:
method CoverageDataFiles.combine_parallel_data(data, aliases=…, data_paths=…, strict=…) - removed:
method CoverageDataFiles.erase(parallel=…) - removed:
method CoverageDataFiles.read(data) - removed:
method CoverageDataFiles.write(data, suffix=…) - removed:
variable os - added:
function add_data_to_hash(data, filename, hasher) - added:
function combine_parallel_data(data, aliases=…, data_paths=…, strict=…, keep=…) - added:
function line_counts(data, fullpath=…)
- removed:
function enable_aspectlib_maybe() - removed:
function filter_aspectlib_frames(text) - removed:
static method DebugOutputFile.the_one(fileobj=…, show_process=…, filters=…) - added:
class NoDebugging(object) - added:
class SimpleReprMixin(object) - added:
field DebugControl.show_repr_attr - added:
field SimpleReprMixin.simple_repr_ignore - added:
function break_in_pudb(func) - added:
function clipped_repr(text, numchars=…) - added:
function decorate_methods(decorator, butnot=…, private=…) - added:
function pp(v) - added:
function show_calls(show_args=…, show_stack=…, show_return=…) - added:
function simplify(v) - added:
method NoDebugging.should(option) - added:
static method DebugOutputFile.get_one(fileobj=…, show_process=…, filters=…, interim=…) - added:
variable CALLS - added:
variable FORCED_DEBUG_FILE - added:
variable OBJ_IDS - added:
variable OBJ_ID_ATTR
- added:
class FileDisposition(object) - added:
function disposition_debug_msg(disp) - added:
function disposition_init(cls, original_filename)
- added:
field PYBEHAVIOR.actual_syspath0_dash_m - added:
field PYBEHAVIOR.async_syntax - added:
field PYBEHAVIOR.docstring_only_function - added:
field PYBEHAVIOR.hashed_pyc_pep552 - added:
field PYBEHAVIOR.keep_constant_test - added:
field PYBEHAVIOR.module_firstline_1 - added:
field PYBEHAVIOR.namespaces_pep420 - added:
field PYBEHAVIOR.negative_lnotab - added:
field PYBEHAVIOR.omit_after_jump - added:
field PYBEHAVIOR.omit_after_return - added:
field PYBEHAVIOR.optimize_if_debug - added:
field PYBEHAVIOR.optimize_if_not_debug - added:
field PYBEHAVIOR.pep626 - added:
field PYBEHAVIOR.report_absolute_files - added:
field PYBEHAVIOR.size_in_pyc - added:
field PYBEHAVIOR.unpackings_pep448 - added:
field PYBEHAVIOR.yield_from - added:
variable CPYTHON - added:
variable PYPY2 - added:
variable PYPY3
- changed:
function run_python_file(filename, args, package=…, modulename=…, path0=…) → function run_python_file(args) - changed:
function run_python_module(modulename, args) → function run_python_module(args) - added:
class PyRunner(object) - added:
constructor PyRunner(args, as_module=…) - added:
method PyRunner.prepare() - added:
method PyRunner.run()
- changed:
function abs_file(filename) → function abs_file(path) - added:
function python_reported_file(filename)
- removed:
class HtmlStatus(object) - removed:
constructor HtmlStatus() - removed:
field HtmlStatus.STATUS_FILE - removed:
field HtmlStatus.STATUS_FORMAT - removed:
method HtmlReporter.file_hash(source, fr) - removed:
method HtmlStatus.file_hash(fname) - removed:
method HtmlStatus.index_info(fname) - removed:
method HtmlStatus.read(directory) - removed:
method HtmlStatus.reset() - removed:
method HtmlStatus.set_file_hash(fname, val) - removed:
method HtmlStatus.set_index_info(fname, info) - removed:
method HtmlStatus.set_settings_hash(settings) - removed:
method HtmlStatus.settings_hash() - removed:
method HtmlStatus.write(directory) - changed:
class HtmlReporter(Reporter) → class HtmlReporter(object) - changed:
constructor HtmlReporter(cov, config) → constructor HtmlReporter(cov) - added:
class HtmlDataGeneration(object) - added:
class IncrementalChecker(object) - added:
constructor HtmlDataGeneration(cov) - added:
constructor IncrementalChecker(directory) - added:
field HtmlDataGeneration.EMPTY - added:
field IncrementalChecker.STATUS_FILE - added:
field IncrementalChecker.STATUS_FORMAT - added:
method HtmlDataGeneration.data_for_file(fr, analysis) - added:
method IncrementalChecker.can_skip_file(data, fr, rootname) - added:
method IncrementalChecker.check_global_data(*data) - added:
method IncrementalChecker.file_hash(fname) - added:
method IncrementalChecker.index_info(fname) - added:
method IncrementalChecker.read() - added:
method IncrementalChecker.reset() - added:
method IncrementalChecker.set_file_hash(fname, val) - added:
method IncrementalChecker.set_index_info(fname, info) - added:
method IncrementalChecker.write()
- added:
class InOrOut(object) - added:
constructor InOrOut(warn, debug) - added:
function canonical_path(morf, directory=…) - added:
function module_has_file(mod) - added:
function module_is_namespace(mod) - added:
function name_for_module(filename, frame) - added:
method InOrOut.check_include_omit_etc(filename, frame) - added:
method InOrOut.configure(config) - added:
method InOrOut.find_possibly_unexecuted_files() - added:
method InOrOut.should_trace(filename, frame=…) - added:
method InOrOut.sys_info() - added:
method InOrOut.warn_already_imported_files() - added:
method InOrOut.warn_conflicting_settings() - added:
method InOrOut.warn_unimported_source()
- added:
class JsonReporter(object) - added:
constructor JsonReporter(coverage) - added:
method JsonReporter.report(morfs, outfile=…) - added:
method JsonReporter.report_one_file(coverage_data, analysis)
- removed:
class SimpleRepr(object) - removed:
function format_lines(statements, lines) - added:
class DefaultValue(object) - added:
constructor DefaultValue(display_as) - added:
function ensure_dir(directory) - added:
function ensure_dir_for_file(path) - added:
function filename_suffix(suffix) - added:
function substitute_variables(text, variables) - added:
variable USE_CONTRACTS
- removed:
variable COVERAGE_RCFILE_ENV
- added:
function num_in_numbits(num, numbits) - added:
function numbits_any_intersection(numbits1, numbits2) - added:
function numbits_intersection(numbits1, numbits2) - added:
function numbits_to_nums(numbits) - added:
function numbits_union(numbits1, numbits2) - added:
function nums_to_numbits(nums) - added:
function register_sqlite_functions(connection)
- removed:
function pickle2json(infile, outfile) - removed:
function pickle_read_raw_data(cls_unused, file_obj) - removed:
variable args - removed:
variable options - removed:
variable parser
- added:
method CoveragePlugin.dynamic_context(frame)
- added:
method DebugPluginWrapper.configure(config) - added:
method DebugPluginWrapper.dynamic_context(frame) - added:
method DebugPluginWrapper.find_executable_files(src_dir) - added:
method Plugins.add_dynamic_context(plugin)
- added:
function source_for_morf(morf)
- added:
variable THIS_FILE
- removed:
class Reporter(object) - removed:
constructor Reporter(coverage, config) - removed:
method Reporter.find_file_reporters(morfs) - removed:
method Reporter.report_files(report_fn, morfs, directory=…) - removed:
property Reporter.file_reporters - removed:
variable os - added:
function get_analysis_to_report(coverage, morfs) - added:
function render_report(output_path, reporter, morfs)
- removed:
method Analysis.arcs_missing_formatted() - removed:
method Analysis.branch_lines() - removed:
method Analysis.total_branches() - changed:
class Numbers(SimpleRepr) → class Numbers(SimpleReprMixin) - changed:
constructor Analysis(data, file_reporter) → constructor Analysis(data, file_reporter, file_mapper) - changed:
method Analysis.missing_formatted() → method Analysis.missing_formatted(branches=…) - added:
function format_lines(statements, lines, arcs=…)
- added:
class CoverageData(SimpleReprMixin) - added:
class SqliteDb(SimpleReprMixin) - added:
constructor CoverageData(basename=…, suffix=…, no_disk=…, warn=…, debug=…) - added:
constructor SqliteDb(filename, debug) - added:
method CoverageData.add_arcs(arc_data) - added:
method CoverageData.add_file_tracers(file_tracers) - added:
method CoverageData.add_lines(line_data) - added:
method CoverageData.arcs(filename) - added:
method CoverageData.base_filename() - added:
method CoverageData.contexts_by_lineno(filename) - added:
method CoverageData.data_filename() - added:
method CoverageData.dumps() - added:
method CoverageData.erase(parallel=…) - added:
method CoverageData.file_tracer(filename) - added:
method CoverageData.has_arcs() - added:
method CoverageData.lines(filename) - added:
method CoverageData.loads(data) - added:
method CoverageData.measured_contexts() - added:
method CoverageData.measured_files() - added:
method CoverageData.read() - added:
method CoverageData.set_context(context) - added:
method CoverageData.set_query_context(context) - added:
method CoverageData.set_query_contexts(contexts) - added:
method CoverageData.touch_file(filename, plugin_name=…) - added:
method CoverageData.touch_files(filenames, plugin_name=…) - added:
method CoverageData.update(other_data, aliases=…) - added:
method CoverageData.write() - added:
method SqliteDb.close() - added:
method SqliteDb.dump() - added:
method SqliteDb.execute(sql, parameters=…) - added:
method SqliteDb.execute_one(sql, parameters=…) - added:
method SqliteDb.executemany(sql, data) - added:
method SqliteDb.executescript(script) - added:
static method CoverageData.sys_info() - added:
variable SCHEMA - added:
variable SCHEMA_VERSION - added:
variable os
- changed:
class SummaryReporter(Reporter) → class SummaryReporter(object) - changed:
constructor SummaryReporter(coverage, config) → constructor SummaryReporter(coverage) - added:
method SummaryReporter.report_one_file(fr, analysis) - added:
method SummaryReporter.writeout(line)
- added:
class TomlConfigParser - added:
class TomlDecodeError(Exception) - added:
constructor TomlConfigParser(our_file) - added:
method TomlConfigParser.get(section, option) - added:
method TomlConfigParser.get_section(section) - added:
method TomlConfigParser.getboolean(section, option) - added:
method TomlConfigParser.getfloat(section, option) - added:
method TomlConfigParser.getint(section, option) - added:
method TomlConfigParser.getlist(section, option) - added:
method TomlConfigParser.getregexlist(section, option) - added:
method TomlConfigParser.has_option(section, option) - added:
method TomlConfigParser.has_section(section) - added:
method TomlConfigParser.options(section) - added:
method TomlConfigParser.read(filenames) - added:
variable toml
- changed:
class XmlReporter(Reporter) → class XmlReporter(object) - changed:
constructor XmlReporter(coverage, config) → constructor XmlReporter(coverage) - changed:
method XmlReporter.xml_file(fr, analysis) → method XmlReporter.xml_file(fr, analysis, has_arcs)