~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/branch_implementations/test_break_lock.py

  • Committer: Robert Collins
  • Date: 2006-05-05 04:00:11 UTC
  • mto: (1697.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 1701.
  • Revision ID: robertc@robertcollins.net-20060505040011-da8649051797224e
Review comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
        # while SilentUIFactory still accepts stdin, we need to customise
35
35
        # ours
36
36
        self.old_factory = bzrlib.ui.ui_factory
 
37
        self.addCleanup(self.restoreFactory)
37
38
        bzrlib.ui.ui_factory = bzrlib.ui.SilentUIFactory()
38
39
 
39
 
    def tearDown(self):
 
40
    def restoreFactory(self):
40
41
        bzrlib.ui.ui_factory = self.old_factory
41
42
 
42
43
    def test_unlocked(self):