Excluding abstractproperties from coverage reports

For me the best solution was what @Wesley mentioned in his comment to the accepted answer, specifically replacing ‘pass’ with a docstring for the abstract property, e.g.:

class MyAbstractClass(object):
    __metaclass__ = ABCMeta

    @abstractproperty
    def myproperty(self):
       """ this property is too abstract to understand. """

Leave a Comment