def regexp_extractor(regexp):
    """Filter tests based on matching a regexp to their id.
    Matching is performed with re.search"""
    import re
    compiled = re.compile(regexp)
    def pred(test): return compiled.search(test.id())
    def wrapper(suite):
        return ifilter(pred, extract_fixtures(suite))
    return wrapper
Filter tests based on matching a regexp to their id.
    Matching is performed with re.search
recipes/Python/391414_Threaded_test_suite_running_other/recipe-391414.py