Searched refs:errtext (Results 1 - 5 of 5) sorted by relevance
/third_party/python/Tools/c-analyzer/c_parser/preprocessor/ |
H A D | common.py | 131 def is_os_mismatch(filename, errtext=None): 137 if errtext is not None: 138 if (missing := is_missing_dep(errtext)): 169 def is_missing_dep(errtext): 170 if 'No such file or directory' in errtext: 171 missing = errtext.split(': No such file or directory')[0].split()[-1]
|
/third_party/python/Lib/test/support/ |
H A D | warnings_helper.py | 16 def check_syntax_warning(testcase, statement, errtext='', 28 if errtext: 29 testcase.assertRegex(str(warn.message), errtext) 40 check_syntax_error(testcase, statement, errtext,
|
H A D | __init__.py | 615 def check_syntax_error(testcase, statement, errtext='', *, lineno=None, offset=None): 616 with testcase.assertRaisesRegex(SyntaxError, errtext) as cm:
|
/third_party/python/Lib/test/ |
H A D | test_syntax.py | 1840 def _check_error(self, code, errtext, 1843 """Check that compiling code raises SyntaxError with errtext. 1854 mo = re.search(errtext, str(err)) 1856 self.fail("SyntaxError did not contain %r" % (errtext,))
|
H A D | test_grammar.py | 228 errtext=r'invalid \w+ literal')
|
Completed in 9 milliseconds