#NEWLINE# def test_cleanupsContinueRunningAfterError( self ) : #NEWLINE# #INDENT# '\n        If a cleanup raises an error then that does not stop the other\n        cleanups from being run.\n        ' #NEWLINE# self . test . addCleanup ( self . test . append , 'foo' ) #NEWLINE# self . test . addCleanup ( self . test . fail , 'bar' ) #NEWLINE# self . test . run ( self . result ) #NEWLINE# self . assertEqual ( [ 'setUp' , 'runTest' , 'foo' , 'tearDown' ] , self . test . log ) #NEWLINE# self . assertEqual ( 1 , len ( self . result . errors ) ) #NEWLINE# [ ( test , error ) ] = self . result . errors #NEWLINE# self . assertEqual ( test , self . test ) #NEWLINE# self . assertEqual ( error . getErrorMessage ( ) , 'bar' )