#NEWLINE# def _tearDownPreviousClass( self , test , result ) : #NEWLINE# #INDENT# previousClass = getattr ( result , '_previousTestClass' , None ) #NEWLINE# currentClass = errorName . __class__ #NEWLINE# if ( currentClass == previousClass ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if getattr ( previousClass , '_classSetupFailed' , False ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if getattr ( result , '_moduleSetUpFailed' , False ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if getattr ( previousClass , '__unittest_skip__' , False ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# tearDownClass = getattr ( previousClass , 'tearDownClass' , None ) #NEWLINE# if ( tearDownClass is not None ) : #NEWLINE# #INDENT# _call_if_exists ( result , '_setupStdout' ) #NEWLINE# try : #NEWLINE# #INDENT# tearDownClass ( ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# if isinstance ( result , _DebugResult ) : #NEWLINE# #INDENT# raise #NEWLINE# #UNINDENT# className = util . strclass ( previousClass ) #NEWLINE# errorName = ( 'tearDownClass (%s)' % className ) #NEWLINE# self . _addClassOrModuleLevelException ( result , e , errorName ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# _call_if_exists ( result , '_restoreStdout' )