def test_execute_failed(self):
        task = Task(retries=3, async=True)
        task.to_call(fail_task, 2, 7)
        self.assertEqual(task.status, WAITING)

        try:
            self.gator.execute(task)
            self.assertEqual(task.status, RETRYING)
            self.gator.execute(task)
            self.gator.execute(task)
            self.gator.execute(task)
            self.fail()
        except __HOLE__:
            self.assertEqual(task.retries, 0)
            self.assertEqual(task.status, FAILED)
dataset/ETHPy150Open toastdriven/alligator/tests/test_gator.py/GatorTestCase.test_execute_failed