~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test__dirstate_helpers.py

  • Committer: John Arbash Meinel
  • Date: 2008-09-02 18:51:03 UTC
  • mto: This revision was merged to the branch mainline in revision 3680.
  • Revision ID: john@arbash-meinel.com-20080902185103-camvrjyw7a9efpno
Change from using AssertionError to using DirstateCorrupt in a few places

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
from bzrlib import (
23
23
    dirstate,
 
24
    errors,
24
25
    tests,
25
26
    )
26
27
from bzrlib.tests import test_dirstate
700
701
            f.write('bogus\n')
701
702
        finally:
702
703
            f.close()
703
 
        e = self.assertRaises(AssertionError, state._read_dirblocks_if_needed)
 
704
        e = self.assertRaises(errors.DirstateCorrupt,
 
705
                              state._read_dirblocks_if_needed)
704
706
        # Make sure we mention the bogus characters in the error
705
707
        self.assertContainsRe(str(e), 'bogus')
706
708