b.t.t.InstrumentedTree(object) : class documentation

Part of bzrlib.tests.test_workingtree View In Hierarchy

A instrumented tree to check the needs_tree_write_lock decorator.
Method __init__ Undocumented
Method lock_tree_write Undocumented
Method method_with_tree_write_lock A lock_tree_write decorated method that returns its arguments.
Method method_that_raises This method causes an exception when called with parameters.
Method unlock Undocumented
def __init__(self):
Undocumented
def lock_tree_write(self):
Undocumented
@needs_tree_write_lock
def method_with_tree_write_lock(self, *args, **kwargs):
A lock_tree_write decorated method that returns its arguments.
@needs_tree_write_lock
def method_that_raises(self):
This method causes an exception when called with parameters.

This allows the decorator code to be checked - it should still call unlock.

def unlock(self):
Undocumented
API Documentation for Bazaar, generated by pydoctor at 2019-09-23 00:31:07.