waive

Functionality for an automatic failure waiving logic, configured by a custom file format. See WAIVERS.md.

Module Contents

exception waive.WaiveParseError(filedesc, msg)

Bases: SyntaxError

Easy waiver file syntax error reporting, with line numbers derived from _PushbackIterator style counter.

waive.collect_waivers()

Recursively walk a directory of waiver files/directories, yielding waiver sections.

class waive.Match(matches, *, strict=False)

A True/False result with additional metadata, returned from custom waiving format and its python code blocks.

Use ‘strict=True’ to fail when the waiver matches on ‘pass’.

matches
strict = False
waive.match_result(status, name, note)
waive.rewrite_result(status, name, note, new_status='warn')