Searched refs:expected_regex (Results 1 – 3 of 3) 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 207 if self.expected_regex is None: 210 expected_regex = self.expected_regex 211 if not expected_regex.search(str(exc_value)): 213 expected_regex.pattern, str(exc_value))) 250 if (self.expected_regex is not None and 251 not self.expected_regex.search(str(w))): [all …]
|
/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 | 393 expected_regex = r"Failed to import test module: abc \(\) //" 398 ImportError, expected_regex, getattr(test, 'abc () //')) 505 expected_regex = r"module 'unittest' has no attribute 'abc \(\) //'" 510 AttributeError, expected_regex, getattr(test, 'abc () //')) 812 expected_regex = r"Failed to import test module: abc \(\) //" 817 ImportError, expected_regex, getattr(test, 'abc () //')) 931 expected_regex = r"module 'unittest' has no attribute 'abc \(\) //'" 936 AttributeError, expected_regex, getattr(test, 'abc () //'))
|