~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_errors.py

  • Committer: Patch Queue Manager
  • Date: 2011-11-11 12:38:26 UTC
  • mfrom: (6256.1.1 dev_2.4_integration)
  • Revision ID: pqm@pqm.ubuntu.com-20111111123826-gi1x0z0wimt8rjkb
(gz) Merge 2.4 into dev (Martin Packman)

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