/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_lockable_files.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:
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: