def test_whenDoneError(self):
        deferred1 = self.task.whenDone()
        results = []
        deferred1.addErrback(results.append)
        self.dieNext()
        self.scheduler.pump()
        self.assertEqual(len(results), 1)
        self.assertEqual(results[0].check(UnhandledException), UnhandledException)
Run one 'epoch' of training or testing, where an epoch is defined
dataset/ETHPy150Open twisted/twisted/twisted/test/test_cooperator.py/RunStateTests.test_whenDoneError--crossover with--dataset/ETHPy150Open spragunr/deep_q_rl/deep_q_rl/ale_experiment.py/ALEExperiment.run_epoch