Searched refs:expected_regex (Results 1 – 4 of 4) sorted by relevance
/third_party/python/Lib/unittest/ |
D | case.py | 167 def __init__(self, expected, test_case, expected_regex=None): argument 171 if expected_regex is not None: 172 expected_regex = re.compile(expected_regex) 173 self.expected_regex = expected_regex 234 if self.expected_regex is None: 237 expected_regex = self.expected_regex 238 if not expected_regex.search(str(exc_value)): 240 expected_regex.pattern, str(exc_value))) 279 if (self.expected_regex is not None and 280 not self.expected_regex.search(str(w))): [all …]
|
/third_party/python/Lib/test/ |
D | test_type_comments.py | 231 def parse_all(self, source, minver=lowest, maxver=highest, expected_regex=""): argument 240 with self.assertRaisesRegex(SyntaxError, expected_regex, 285 expected_regex="^Cannot have two type comments on def"):
|
/third_party/python/Lib/unittest/test/ |
D | test_assertions.py | 202 for i, expected_regex in enumerate(errors): 210 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 () //'))
|