Searched refs:expected_regexp (Results 1 – 3 of 3) sorted by relevance
/external/python/cpython2/Lib/unittest/ |
D | case.py | 101 def __init__(self, expected, test_case, expected_regexp=None): argument 104 self.expected_regexp = expected_regexp 121 if self.expected_regexp is None: 124 expected_regexp = self.expected_regexp 125 if not expected_regexp.search(str(exc_value)): 127 (expected_regexp.pattern, str(exc_value))) 976 def assertRaisesRegexp(self, expected_exception, expected_regexp, argument 988 if expected_regexp is not None: 989 expected_regexp = re.compile(expected_regexp) 990 context = _AssertRaisesContext(expected_exception, self, expected_regexp) [all …]
|
/external/python/cpython2/Lib/unittest/test/ |
D | test_assertions.py | 159 for i, expected_regexp in enumerate(errors): 167 expected_regexp=expected_regexp):
|
/external/tensorflow/tensorflow/python/kernel_tests/ |
D | py_func_test.py | 419 expected_regexp = r": blah.*" # Error at the top 420 expected_regexp += r"in raise_exception.*" # Stacktrace outer 421 expected_regexp += r"in inner_exception.*" # Stacktrace inner 422 expected_regexp += r": blah" # Stacktrace of raise 424 return re.search(expected_regexp, str(exception), re.DOTALL)
|