130
137
lazy_regex.install_lazy_compile()
131
138
lazy_regex.reset_compile()
132
140
pattern = re.compile('foo')
133
141
self.assertFalse(isinstance(pattern, lazy_regex.LazyRegex),
136
144
# but the returned object should still support regex operations
138
146
self.assertEqual('foo', m.group())