#NEWLINE# def test_extending_unlocked_lock_raises_error( self , sr ) : #NEWLINE# #INDENT# lock = self . get_lock ( sr , 'foo' , timeout = 10 ) #NEWLINE# with pytest . raises ( LockError ) : #NEWLINE# #INDENT# lock . extend ( 10 )