#NEWLINE# def test_terminate_quick_death_no_purge( self ) : #NEWLINE# #INDENT# with self . setup_terminate ( ) as ( mock_kill , mock_alive , mock_purge ) : #NEWLINE# #INDENT# mock_kill . side_effect = OSError ( 'oops' ) #NEWLINE# mock_alive . side_effect = [ True , False ] #NEWLINE# self . pm . terminate ( purge = False , kill_wait = 0.1 ) #NEWLINE# self . assertEqual ( mock_kill . call_count , 1 ) #NEWLINE# self . assertEqual ( self . call_count , 0 )