~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_ui.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-11-03 02:35:48 UTC
  • mfrom: (2067.3.7 cleanup-errors)
  • Revision ID: pqm@pqm.ubuntu.com-20061103023548-12e702bb911c4be2
(mbp) deprecate BzrNewError, change to using .internal_error on exceptions, etc

Show diffs side-by-side

added added

removed removed

Lines of Context:
189
189
            self.apply_redirected(
190
190
                None, factory.stdout, factory.stdout, factory.get_boolean, "what do you want")
191
191
            )
 
192
        # FIXME: This assumes the factory's going to produce a spinner-style
 
193
        # progress bar, but it won't if this is run from a dumb terminal (e.g.
 
194
        # from inside gvim.) -- mbp 20061014
 
195
        #
192
196
        # use a regular expression so that we don't depend on the particular
193
197
        # screen width - could also set and restore $COLUMN if that has
194
198
        # priority on all platforms, but it doesn't at present.
198
202
            "\r   *" 
199
203
            "\rwhat do you want\\? \\[y/n\\]:what do you want\\? \\[y/n\\]:", 
200
204
            output):
201
 
            self.fail("didn't match factory output %r, %s" % (factory, output))
 
205
            self.fail("didn't match factory output %r, %r" % (factory, output))