754
757
# prevent hooks affecting tests
755
760
self._preserved_hooks = {
759
764
self.addCleanup(self._restoreHooks)
760
765
# this list of hooks must be kept in sync with the defaults
762
767
bzrlib.branch.Branch.hooks = bzrlib.branch.BranchHooks()
765
772
"""Turn off UI for duration of test"""