~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-01-08 07:18:07 UTC
  • mfrom: (4943.1.2 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20100108071807-vmk4kojiz0oqsyl5
(robertc) The Branch hooks pre_change_branch_tip no longer masks
        exceptions raised by plugins - the original exceptions are now
        pre^Crved. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
542
542
            1/0
543
543
        except ZeroDivisionError:
544
544
            exc_info = sys.exc_info()
545
 
        err = errors.HookFailed('hook stage', 'hook name', exc_info)
 
545
        err = errors.HookFailed('hook stage', 'hook name', exc_info, warn=False)
546
546
        self.assertStartsWith(
547
547
            str(err), 'Hook \'hook name\' during hook stage failed:\n')
548
548
        self.assertEndsWith(