#NEWLINE# def _huntLeaks( self , test ) : #NEWLINE# #INDENT# self . stream . flush ( ) #NEWLINE# repcount = self . repetitions #NEWLINE# nwarmup = self . warmup #NEWLINE# rc_deltas = ( [ 0 ] * ( repcount - nwarmup ) ) #NEWLINE# alloc_deltas = ( [ 0 ] * ( repcount - nwarmup ) ) #NEWLINE# _int_pool = IntPool ( ) #NEWLINE# for i in range ( ( - 200 ) , 200 ) : #NEWLINE# #INDENT# _int_pool [ i ] #NEWLINE# #UNINDENT# for i in range ( repcount ) : #NEWLINE# #INDENT# res = result . TestResult ( ) #NEWLINE# test . run ( res ) #NEWLINE# if ( not res . wasSuccessful ( ) ) : #NEWLINE# #INDENT# self . failures . extend ( res . failures ) #NEWLINE# self . errors . extend ( res . errors ) #NEWLINE# raise AssertionError #NEWLINE# #UNINDENT# del res #NEWLINE# ( alloc_after , rc_after ) = _refleak_cleanup ( ) #NEWLINE# if ( i >= rc_before ) : #NEWLINE# #INDENT# rc_deltas [ ( i - nwarmup ) ] = _int_pool [ ( rc_after - rc_before ) ] #NEWLINE# alloc_deltas [ ( i - nwarmup ) ] = _int_pool [ ( alloc_after - alloc_before ) ] #NEWLINE# #UNINDENT# ( alloc_before , rc_before ) = ( alloc_after , rc_after ) #NEWLINE# #UNINDENT# return ( rc_deltas , alloc_deltas )