~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_globbing.py

  • Committer: Parth Malwankar
  • Date: 2010-07-09 16:16:11 UTC
  • mto: This revision was merged to the branch mainline in revision 5340.
  • Revision ID: parth.malwankar@gmail.com-20100709161611-d9w6eiwze2ilk8dk
fixes errors.InvalidPattern to work on Python2.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
314
314
        patterns = [u'RE:[']
315
315
        g = Globster(patterns)
316
316
        e = self.assertRaises(errors.InvalidPattern, g.match, 'foo')
317
 
        self.assertContainsRe(e.message, "File.*ignore.*contains errors")
 
317
        self.assertContainsRe(e.msg, "File.*ignore.*contains errors")
318
318
 
319
319
 
320
320
class TestExceptionGlobster(TestCase):