Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 1.12 KB

api_module.rst

File metadata and controls

38 lines (24 loc) · 1.12 KB

coverage module

coverage

The most important thing in the coverage module is the coverage.Coverage class, described in api_coverage, but there are a few other things also.

version_info

A tuple of five elements, similar to sys.version_info <python:sys.version_info>: major, minor, micro, releaselevel, and serial. All values except releaselevel are integers; the release level is 'alpha', 'beta', 'candidate', or 'final'. Unlike sys.version_info <python:sys.version_info>, the elements are not available by name.

__version__

A string with the version of coverage.py, for example, "5.0b2".

CoverageException

Starting coverage.py automatically

This function is used to start coverage measurement automatically when Python starts. See subprocess for details.

process_startup