~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_lazy_regex.py

  • Committer: Martin Pool
  • Date: 2011-06-13 22:39:49 UTC
  • mto: This revision was merged to the branch mainline in revision 6004.
  • Revision ID: mbp@canonical.com-20110613223949-bxs9qknusts7llkp
Explicitly use lazy_regexp where we count on its error reporting behaviour

Show diffs side-by-side

added added

removed removed

Lines of Context:
124
124
    assume it is installed, and leave it installed when they're done.
125
125
    """
126
126
 
127
 
    def setUp(self):
128
 
        super(TestInstallLazyCompile, self).setUp()
129
 
 
130
127
    def test_install(self):
131
 
        lazy_regex.reset_compile()
132
 
        lazy_regex.install_lazy_compile()
133
128
        pattern = re.compile('foo')
134
129
        self.assertIsInstance(pattern, lazy_regex.LazyRegex)
135
130
 
136
131
    def test_reset(self):
137
 
        lazy_regex.install_lazy_compile()
138
132
        lazy_regex.reset_compile()
139
133
        self.addCleanup(lazy_regex.install_lazy_compile)
140
134
        pattern = re.compile('foo')