Searched refs:expected_regex (Results 1 – 5 of 5) sorted by relevance
/external/python/cpython3/Lib/unittest/ |
D | case.py | 139 def __init__(self, expected, test_case, expected_regex=None): argument 143 if expected_regex is not None: 144 expected_regex = re.compile(expected_regex) 145 self.expected_regex = expected_regex 211 if self.expected_regex is None: 214 expected_regex = self.expected_regex 215 if not expected_regex.search(str(exc_value)): 217 expected_regex.pattern, str(exc_value))) 254 if (self.expected_regex is not None and 255 not self.expected_regex.search(str(w))): [all …]
|
/external/tensorflow/tensorflow/python/framework/ |
D | error_interpolation_test.py | 190 expected_regex = ( 192 self.assertRegexpMatches(interpolated_string, expected_regex) 225 expected_regex = ( 227 self.assertRegexpMatches(interpolated_string, expected_regex) 232 expected_regex = re.compile( 235 self.assertRegexpMatches(interpolated_string, expected_regex)
|
D | ops_test.py | 2719 expected_regex = r"device_func<.*ops_test.py, [0-9]+" 2720 self.assertRegexpMatches(func_description, expected_regex)
|
/external/python/cpython3/Lib/unittest/test/ |
D | test_assertions.py | 199 for i, expected_regex in enumerate(errors): 207 expected_regex=expected_regex):
|
D | test_loader.py | 394 expected_regex = r"Failed to import test module: abc \(\) //" 399 ImportError, expected_regex, getattr(test, 'abc () //')) 506 expected_regex = r"module 'unittest' has no attribute 'abc \(\) //'" 511 AttributeError, expected_regex, getattr(test, 'abc () //')) 813 expected_regex = r"Failed to import test module: abc \(\) //" 818 ImportError, expected_regex, getattr(test, 'abc () //')) 932 expected_regex = r"module 'unittest' has no attribute 'abc \(\) //'" 937 AttributeError, expected_regex, getattr(test, 'abc () //'))
|