#NEWLINE# def testSystemExitRaises( self , reporter , RunnerClass , dep_manager ) : #NEWLINE# #INDENT# t1 = Task ( 't1' , [ _exit ] ) #NEWLINE# my_runner = RunnerClass ( dep_manager , reporter ) #NEWLINE# disp = TaskDispatcher ( { #NEWLINE# #INDENT# 't1' : t1 , #NEWLINE# #UNINDENT# } , [ ] , [ 't1' ] ) #NEWLINE# pytest . raises ( SystemExit , my_runner . run_tasks , disp ) #NEWLINE# my_runner . finish ( )