#NEWLINE# def test_different_thread( self ) : #NEWLINE# #INDENT# lock = self . locktype ( ) #NEWLINE# def f( ) : #NEWLINE# #INDENT# lock . acquire ( ) #NEWLINE# #UNINDENT# b = Bunch ( f , 1 , True ) #NEWLINE# try : #NEWLINE# #INDENT# self . assertRaises ( RuntimeError , b . release ) #NEWLINE# #UNINDENT# finally : #NEWLINE# #INDENT# b . do_finish ( )