Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/test/
Dtest_syntax.py495 def _check_error(self, code, errtext, member in SyntaxTestCase
515 self._check_error("def f((x)=23): pass",
519 self._check_error("f() = 1", "assign")
522 self._check_error("del f()", "delete")
535 self._check_error(source, "global")
539 self._check_error("break", "outside loop")
548 self._check_error(source, "nested scope")
551 self._check_error("foo()\n bar()\n", "unexpected indent",
555 self._check_error("if 1:\nfoo()", "expected an indented block",
559 self._check_error("if 1:\n foo()\n bar()",
[all …]