#NEWLINE# def test_continue_dont_execute_parent_of_failed_task( self , reporter , RunnerClass , dep_manager ) : #NEWLINE# #INDENT# t1 = Task ( 't1' , [ ( _error , ) ] ) #NEWLINE# t2 = Task ( 't2' , [ ( ok , ) ] , task_dep = [ 't1' ] ) #NEWLINE# t3 = Task ( 't3' , [ ( ok , ) ] ) #NEWLINE# my_runner = RunnerClass ( dep_manager , reporter , continue_ = True ) #NEWLINE# disp = TaskDispatcher ( { #NEWLINE# #INDENT# 't1' : t1 , #NEWLINE# 't2' : t2 , #NEWLINE# 't3' : t3 , #NEWLINE# #UNINDENT# } , [ ] , [ 't1' , 't2' , 't3' ] ) #NEWLINE# my_runner . run_tasks ( disp ) #NEWLINE# assert ( runner . ERROR == my_runner . finish ( ) ) #NEWLINE# assert ( ( 'start' , t1 ) == reporter . log . pop ( 0 ) ) #NEWLINE# assert ( ( 'execute' , t1 ) == reporter . log . pop ( 0 ) ) #NEWLINE# assert ( ( 'fail' , t1 ) == reporter . log . pop ( 0 ) ) #NEWLINE# assert ( ( 'start' , t2 ) == reporter . log . pop ( 0 ) ) #NEWLINE# assert ( ( 'fail' , t2 ) == reporter . log . pop ( 0 ) ) #NEWLINE# assert ( ( 'start' , dep_manager ) == reporter . log . pop ( 0 ) ) #NEWLINE# assert ( ( 'execute' , t3 ) == reporter . log . pop ( 0 ) ) #NEWLINE# assert ( ( 'success' , t3 ) == reporter . log . pop ( 0 ) ) #NEWLINE# assert ( 0 == len ( reporter . log ) )