#NEWLINE# def test_thread_leak( self ) : #NEWLINE# #INDENT# lock = self . locktype ( ) #NEWLINE# def f( ) : #NEWLINE# #INDENT# lock . acquire ( ) #NEWLINE# lock . release ( ) #NEWLINE# #UNINDENT# n = len ( threading . enumerate ( ) ) #NEWLINE# Bunch ( f , 15 ) . wait_for_finished ( ) #NEWLINE# self . assertEqual ( self , len ( threading . enumerate ( ) ) )