Lines Matching refs:regex
73 :param ignore_regex: A string, compiled regex, or iterable containing
174 def __init__(self, regex, match_stderr=True, match_stdout=True):
176 self.regex = _iterable_regex(regex)
188 for regex in self.regex:
189 if re.match(regex, line):
200 test.fail('Could not match regex.')
203 def _iterable_regex(regex):
204 if isinstance(regex, _re_type) or isinstance(regex, str):
205 regex = (regex,)
206 return regex