Home
last modified time | relevance | path

Searched refs:errtext (Results 1 - 5 of 5) sorted by relevance

/third_party/python/Tools/c-analyzer/c_parser/preprocessor/
H A Dcommon.py131 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 Dwarnings_helper.py16 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__.py615 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 Dtest_syntax.py1840 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 Dtest_grammar.py228 errtext=r'invalid \w+ literal')

Completed in 9 milliseconds