Pragma on a decorator line should affect the entire function definition · Issue #131 · nedbat/coveragepy (original) (raw)
From a question in #python:
@abstractmethod #pragma: no cover
def something_abstract():
pass
This should exclude the entire definition and body of the function. In particular, it would be good to be able to add an exclusion regex of "@AbstractMethod" and have all the abstract methods be ignored.