def __init__(self, config):
    self.config = config
    active_keys = ('lf', 'failedfirst')
    self.active = any((config.getoption(key) for key in active_keys))
    self.lastfailed = config.cache.get('cache/lastfailed', {})
    self._previously_failed_count = None
    self._no_failures_behavior = self.config.getoption('last_failed_no_failures')
def __init__(self, config):
    self.config = config
    active_keys = ('lf', 'failedfirst')
    self.active = any((config.getoption(key) for key in active_keys))
    self.lastfailed = config.cache.get('cache/lastfailed', {})
    self._previously_failed_count = None
    self._no_failures_behavior = self.config.getoption('last_failed_no_failures')