#NEWLINE# def _run_test( self , name ) : #NEWLINE# #INDENT# setup_test = name . replace ( self . _prefix , 'setup_' ) #NEWLINE# teardown_test = name . replace ( self . _prefix , 'teardown_' ) #NEWLINE# try : #NEWLINE# #INDENT# self . _run_env ( setup_test ) #NEWLINE# with Timer ( ) as t : #NEWLINE# #INDENT# res = self . _run_function ( name ) #NEWLINE# #UNINDENT# if res : #NEWLINE# #INDENT# r = res #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# r = BenchmarkData ( name , None ) #NEWLINE# r . add_result ( t . msecs ) #NEWLINE# #UNINDENT# self . _results [ teardown_test ] = r #NEWLINE# #UNINDENT# except BaseException as e : #NEWLINE# #INDENT# self . log . warn ( 'The test is skipped because it raised an exception' ) #NEWLINE# self . log . warn ( e ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# self . _run_env ( teardown_test )