~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Martin Packman
  • Date: 2011-11-11 12:08:56 UTC
  • mfrom: (6015.44.5 2.4)
  • mto: This revision was merged to the branch mainline in revision 6257.
  • Revision ID: martin.packman@canonical.com-20111111120856-q9qih7zog2rlsihq
Merge 2.4 to pick up fix for unprintable RetryWithNewPacks

Show diffs side-by-side

added added

removed removed

Lines of Context:
719
719
            'Please use `bzr unbind` to fix.')
720
720
        self.assertEqualDiff(msg, str(error))
721
721
 
 
722
    def test_retry_with_new_packs(self):
 
723
        fake_exc_info = ('{exc type}', '{exc value}', '{exc traceback}')
 
724
        error = errors.RetryWithNewPacks(
 
725
            '{context}', reload_occurred=False, exc_info=fake_exc_info)
 
726
        self.assertEqual(
 
727
            'Pack files have changed, reload and retry. context: '
 
728
            '{context} {exc value}', str(error))
 
729
 
722
730
 
723
731
class PassThroughError(errors.BzrError):
724
732