/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/per_pack_repository.py

  • Committer: Aaron Bentley
  • Date: 2010-02-08 16:48:07 UTC
  • mfrom: (5016 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5049.
  • Revision ID: aaron@aaronbentley.com-20100208164807-zv41drgipjmp8q2l
Merged bzr.dev into lpsubmit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
590
590
    def prepare_for_break_lock(self):
591
591
        # Setup the global ui factory state so that a break-lock method call
592
592
        # will find usable input in the input stream.
593
 
        old_factory = ui.ui_factory
594
 
        def restoreFactory():
595
 
            ui.ui_factory = old_factory
596
 
        self.addCleanup(restoreFactory)
597
593
        ui.ui_factory = ui.CannedInputUIFactory([True])
598
594
 
599
595
    def test_break_lock_breaks_physical_lock(self):