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

  • Committer: Martin Pool
  • Date: 2009-01-21 05:30:44 UTC
  • mto: This revision was merged to the branch mainline in revision 3956.
  • Revision ID: mbp@sourcefrog.net-20090121053044-mhynfsubozjh9wol
Corrections to finishing progress bars

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
        ui = TextUIFactory(None, None, None)
145
145
        pb1 = ui.nested_progress_bar()
146
146
        pb2 = ui.nested_progress_bar()
147
 
        # We no longer warn about finishing unnested progress bars.
 
147
        # You do get a warning if the outermost progress bar wasn't finished
 
148
        # first - it's not clear if this is really useful or if it should just
 
149
        # become orphaned -- mbp 20090120
148
150
        warnings, _ = self.callCatchWarnings(pb1.finished)
149
 
        self.assertEqual(len(warnings), 0)
 
151
        if len(warnings) != 1:
 
152
            self.fail("unexpected warnings: %r" % (warnings,))
150
153
        pb2.finished()
151
154
        pb1.finished()
152
155