Home
last modified time | relevance | path

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

/external/python/cpython3/Lib/test/
Dtest_syntax.py600 def _check_error(self, code, errtext, member in SyntaxTestCase
625 self._check_error("f() = 1", "assign")
628 self._check_error("del f()", "delete")
638 self._check_error(source, "parameter and global", lineno=3)
648 self._check_error(source, "parameter and nonlocal", lineno=3)
651 self._check_error("break", "outside loop")
654 self._check_error("foo()\n bar()\n", "unexpected indent",
658 self._check_error("if 1:\nfoo()", "expected an indented block",
662 self._check_error("if 1:\n foo()\n bar()",
667 self._check_error("int(base=10, '2')",
[all …]
/external/python/cpython2/Lib/test/
Dtest_syntax.py628 def _check_error(self, code, errtext, member in SyntaxTestCase
654 self._check_error("def f((x)=23): pass",
660 self._check_error("`1` = 1", "assign to repr")
663 self._check_error("f() = 1", "assign")
666 self._check_error("del f()", "delete")
680 self._check_error(source, "local and global", lineno=2)
703 self._check_error("break", "outside loop")
712 self._check_error(source, "nested scope", filename=None)
715 self._check_error("foo()\n bar()\n", "unexpected indent",
719 self._check_error("if 1:\nfoo()", "expected an indented block",
[all …]