~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_lazy_regex.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-07-09 18:02:18 UTC
  • mfrom: (5339.1.1 invalidpattern-python25)
  • Revision ID: pqm@pqm.ubuntu.com-20100709180218-431qg3bpsu3yy53o
(jameinel) Rename errors.InvalidPattern argument message=>msg to work with
 multiple Python versions. (Parth Malwankar)

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
        # As p.match is lazy, we make it into a lambda so its handled
71
71
        # by assertRaises correctly.
72
72
        e = self.assertRaises(errors.InvalidPattern, lambda: p.match('foo'))
73
 
        self.assertEqual(e.message,
74
 
            '"RE:[" unexpected end of regular expression')
 
73
        self.assertEqual(e.msg, '"RE:[" unexpected end of regular expression')
75
74
 
76
75
 
77
76
class TestLazyCompile(tests.TestCase):