/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Martin Pool
  • Date: 2010-07-15 09:47:16 UTC
  • mfrom: (5345 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5346.
  • Revision ID: mbp@canonical.com-20100715094716-sljdg6go0d12xi79
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
2744
2744
    :param pattern: A regular expression string.
2745
2745
    :return: A callable that returns True if the re matches.
2746
2746
    """
2747
 
    filter_re = osutils.re_compile_checked(pattern, 0,
2748
 
        'test filter')
 
2747
    filter_re = re.compile(pattern, 0)
2749
2748
    def condition(test):
2750
2749
        test_id = test.id()
2751
2750
        return filter_re.search(test_id)