HomeSort by relevance Sort by last modified time
    Searched refs:_check_error (Results 1 - 3 of 3) sorted by null

  /external/python/cpython3/Lib/test/
test_syntax.py 600 def _check_error(self, code, errtext, member in class: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/
test_syntax.py 628 def _check_error(self, code, errtext, member in class: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...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
test_syntax.py 493 def _check_error(self, code, errtext, member in class:SyntaxTestCase
513 self._check_error("def f((x)=23): pass",
517 self._check_error("f() = 1", "assign")
520 self._check_error("del f()", "delete")
533 self._check_error(source, "global")
537 self._check_error("break", "outside loop")
546 self._check_error(source, "nested scope")
549 self._check_error("foo()\n bar()\n", "unexpected indent",
553 self._check_error("if 1:\nfoo()", "expected an indented block",
557 self._check_error("if 1:\n foo()\n bar()",
    [all...]

Completed in 3605 milliseconds