#NEWLINE# def test_interrupting_sigint( self ) : #NEWLINE# #INDENT# inp = Input ( sigint_event = True ) #NEWLINE# def send_sigint( ) : #NEWLINE# #INDENT# os . kill ( os . getpid ( ) , signal . SIGINT ) #NEWLINE# #UNINDENT# with inp : #NEWLINE# #INDENT# t = threading . Thread ( target = send_sigint ) #NEWLINE# t . start ( ) #NEWLINE# self . assertEqual ( type ( inp . send ( 1 ) ) , events . SigIntEvent ) #NEWLINE# self . assertEqual ( inp . send ( 0 ) , None ) #NEWLINE# t . join ( )