#NEWLINE# def test_systemexit_0_is_ignored( self ) : #NEWLINE# #INDENT# iterable = ExitingIterable ( ( lambda : SystemExit ( 0 ) ) ) #NEWLINE# app = ExampleApp ( iterable ) #NEWLINE# middleware = Sentry ( app , client = self . client ) #NEWLINE# response = middleware ( app . request . environ , ( lambda * args : None ) ) #NEWLINE# with self . assertRaises ( SystemExit ) : #NEWLINE# #INDENT# response = list ( response ) #NEWLINE# #UNINDENT# self . assertTrue ( iterable . closed , True ) #NEWLINE# self . assertEquals ( len ( self . client . events ) , 0 )