'If a cleanup raises an error then that does not stop the other
cleanups from being run.'

def test_cleanupsContinueRunningAfterError(self):

    self.test.addCleanup(self.test.append, 'foo')
    self.test.addCleanup(self.test.fail, 'bar')
    self.test.run(self.result)
    self.assertEqual(['setUp', 'runTest', 'foo', 'tearDown'], self.test.log)
    self.assertEqual(1, len(self.result.errors))
    [(test, error)] = self.result.errors
    self.assertEqual(test, self.test)
    self.assertEqual(error.getErrorMessage(), 'bar')
