def test_ignored_keyerror(self): d = {} with autopylot.ignored(KeyError): d[1]
def _raises_exc(): d = {} with autopylot.ignored(IndexError): d[1]
def test_ignored_default(self): d = {} with autopylot.ignored(): d[1]