~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Martin Pool
  • Date: 2009-06-23 09:17:21 UTC
  • mto: (4712.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4715.
  • Revision ID: mbp@sourcefrog.net-20090623091721-ix4tpdsj2i9g1fxb
Deprecate ProgressTask.note

Show diffs side-by-side

added added

removed removed

Lines of Context:
437
437
        return self._shortened_test_description(test)
438
438
 
439
439
    def report_error(self, test, err):
440
 
        self.pb.note('ERROR: %s\n    %s\n',
 
440
        ui.ui_factory.note('ERROR: %s\n    %s\n' % (
441
441
            self._test_description(test),
442
442
            err[1],
443
 
            )
 
443
            ))
444
444
 
445
445
    def report_failure(self, test, err):
446
 
        self.pb.note('FAIL: %s\n    %s\n',
 
446
        ui.ui_factory.note('FAIL: %s\n    %s\n' % (
447
447
            self._test_description(test),
448
448
            err[1],
449
 
            )
 
449
            ))
450
450
 
451
451
    def report_known_failure(self, test, err):
452
 
        self.pb.note('XFAIL: %s\n%s\n',
453
 
            self._test_description(test), err[1])
 
452
        ui.ui_factory.note('XFAIL: %s\n%s\n' % (
 
453
            self._test_description(test), err[1]))
454
454
 
455
455
    def report_skip(self, test, reason):
456
456
        pass
709
709
    Redirect stdin.
710
710
    Allows get_password to be tested without real tty attached.
711
711
    """
 
712
    # FIXME: Reduce divergence between this and the regular TextUIFactory or
 
713
    # CannedInputUIFactory
712
714
 
713
715
    def __init__(self, stdout=None, stderr=None, stdin=None):
714
716
        if stdin is not None:
738
740
        return self
739
741
 
740
742
    def nested_progress_bar(self):
 
743
        # FIXME: Return a regular progress model instead
741
744
        return self
742
745
 
743
746
    def update(self, message, count=None, total=None):