def pytest_report_collectionfinish(self):
    if (self.active and (self.config.getoption('verbose') >= 0)):
        if (not self._previously_failed_count):
            return None
        noun = ('failure' if (self._previously_failed_count == 1) else 'failures')
        suffix = (' first' if self.config.getoption('failedfirst') else '')
        mode = 'rerun previous {count} {noun}{suffix}'.format(count=self._previously_failed_count, suffix=suffix, noun=noun)
        return ('run-last-failure: %s' % mode)
def pytest_report_collectionfinish(self):
    if (self.active and (self.config.getoption('verbose') >= 0)):
        if (not self._previously_failed_count):
            return None
        noun = ('failure' if (self._previously_failed_count == 1) else 'failures')
        suffix = (' first' if self.config.getoption('failedfirst') else )
        mode = 'rerun previous {count} {noun}{suffix}'.format(count=self._previously_failed_count, suffix=suffix, noun=noun)
        return ('run-last-failure: %s' % mode)