~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2011-02-20 13:34:07 UTC
  • mto: (5622.4.1 uninstall-hook)
  • mto: This revision was merged to the branch mainline in revision 5747.
  • Revision ID: jelmer@samba.org-20110220133407-zhgrvuhhc1e3j2fn
Add more lazily usable hook points.

Show diffs side-by-side

added added

removed removed

Lines of Context:
999
999
        self.addCleanup(self._restoreHooks)
1000
1000
        for key, (parent, name) in known_hooks.iter_parent_objects():
1001
1001
            factory = known_hooks.get(key)
1002
 
            setattr(parent, name, factory())
 
1002
            setattr(parent, name, factory(key[0], key[1]))
1003
1003
        # this hook should always be installed
1004
1004
        request._install_hook()
1005
1005