~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/bzrdir_implementations/test_bzrdir.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:
1125
1125
        # while SilentUIFactory still accepts stdin, we need to customise
1126
1126
        # ours
1127
1127
        self.old_factory = bzrlib.ui.ui_factory
 
1128
        self.addCleanup(self.restoreFactory)
1128
1129
        bzrlib.ui.ui_factory = bzrlib.ui.SilentUIFactory()
1129
1130
 
1130
 
    def tearDown(self):
 
1131
    def restoreFactory(self):
1131
1132
        bzrlib.ui.ui_factory = self.old_factory
1132
1133
 
1133
1134
    def test_break_lock_empty(self):