~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_pack_repository.py

  • Committer: Martin Pool
  • Date: 2009-06-23 08:43:05 UTC
  • mto: This revision was merged to the branch mainline in revision 4558.
  • Revision ID: mbp@sourcefrog.net-20090623084305-lcuasmyncbq2ncfk
More test updates to use CannedInputUIFactory

Show diffs side-by-side

added added

removed removed

Lines of Context:
484
484
        def restoreFactory():
485
485
            ui.ui_factory = old_factory
486
486
        self.addCleanup(restoreFactory)
487
 
        ui.ui_factory = ui.SilentUIFactory()
488
 
        ui.ui_factory.stdin = StringIO("y\n")
 
487
        ui.ui_factory = ui.CannedInputUIFactory([True])
489
488
 
490
489
    def test_break_lock_breaks_physical_lock(self):
491
490
        repo = self.make_repository('.', format=self.get_format())