#NEWLINE# def test_wait_return( self ) : #NEWLINE# #INDENT# '\n        test the return value from barrier.wait\n        ' #NEWLINE# results = [ ] #NEWLINE# def f( ) : #NEWLINE# #INDENT# r = self . barrier . wait ( ) #NEWLINE# results . append ( r ) #NEWLINE# #UNINDENT# self . run_threads ( f ) #NEWLINE# self . assertEqual ( sum ( results ) , sum ( range ( self . N ) ) )