Home
last modified time | relevance | path

Searched refs:warntext (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Lib/test/
Dtest_grammar.py628 def check(code, warntext): argument
629 with check_py3k_warnings((warntext, DeprecationWarning)):
636 self.assertIn(warntext, str(cm.exception))
/external/python/cpython3/Lib/test/
Dtest_grammar.py923 def check(code, warntext): argument
924 with self.assertWarnsRegex(DeprecationWarning, warntext):
929 with self.assertRaisesRegex(SyntaxError, warntext):