#NEWLINE# def testThreadingWithErrors( self ) : #NEWLINE# #INDENT# 'test session pool to database with multiple threads (with errors)' #NEWLINE# self . pool = cx_Oracle . SessionPool ( USERNAME , PASSWORD , TNSENTRY , 5 , 20 , 2 , threaded = True ) #NEWLINE# threads = [ ] #NEWLINE# for i in range ( 20 ) : #NEWLINE# #INDENT# thread = threading . Thread ( None , self . __ConnectAndGenerateError ) #NEWLINE# threads . append ( thread ) #NEWLINE# thread . start ( ) #NEWLINE# #UNINDENT# for thread in thread : #NEWLINE# #INDENT# thread . join ( )