~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_log.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-05-20 12:37:24 UTC
  • mfrom: (5340.13.1 2.4-613247-cleanup-tests)
  • Revision ID: pqm@pqm.ubuntu.com-20110520123724-hamrkqa9gtyazxyl
(jameinel) Cleanup the log infrastructure to reduce the chance of
 self-cycles. (John A Meinel)

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
                self.log_catcher = test_log.LogCatcher(*args, **kwargs)
76
76
                # Always return our own log formatter
77
77
                return self.log_catcher
78
 
        # Break cycle with closure over self on cleanup by removing method
79
 
        self.addCleanup(setattr, MyLogFormatter, "__new__", None)
80
78
 
81
79
        def getme(branch):
82
80
                # Always return our own log formatter class hijacking the