~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_lockable_files.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-07-22 09:03:35 UTC
  • mfrom: (4449.3.47 387717-progress-bar-tty)
  • Revision ID: pqm@pqm.ubuntu.com-20090722090335-m1okio1ev9bwytui
(mbp) various UIFactory cleanups including bug 387717

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
        l2 = self.get_lockable()
158
158
        orig_factory = bzrlib.ui.ui_factory
159
159
        # silent ui - no need for stdout
160
 
        bzrlib.ui.ui_factory = bzrlib.ui.SilentUIFactory()
161
 
        bzrlib.ui.ui_factory.stdin = StringIO("y\n")
 
160
        bzrlib.ui.ui_factory = bzrlib.ui.CannedInputUIFactory([True])
162
161
        try:
163
162
            l2.break_lock()
164
163
        finally: