Lines Matching refs:check_syntax_error
4 from test.support import check_syntax_error
106 from test.support import check_syntax_error
195 check = self.check_syntax_error
369 from test.support import check_syntax_error
400 check_syntax_error(self, "def f: int")
401 check_syntax_error(self, "x: int: str")
402 check_syntax_error(self, "def f():\n"
405 check_syntax_error(self, "[x, 0]: int\n")
406 check_syntax_error(self, "f(): int\n")
407 check_syntax_error(self, "(x,): int")
408 check_syntax_error(self, "def f():\n"
411 check_syntax_error(self, "def f():\n"
414 check_syntax_error(self, "def f():\n"
712 check_syntax_error(self, "f(*g(1=2))")
713 check_syntax_error(self, "f(**g(1=2))")
812 check_syntax_error(self, "lambda x: x = 2")
813 check_syntax_error(self, "lambda (None,): None")
860 check_syntax_error(self, "x + 1 = 1")
861 check_syntax_error(self, "a + 1 = b + 2")
989 check_syntax_error(self, "class foo:return 1")
1183 check_syntax_error(self, "def g(): yield from (), 1")
1184 check_syntax_error(self, "def g(): x = yield from (), 1")
1188 check_syntax_error(self, "def g(): 1, yield 1")
1189 check_syntax_error(self, "def g(): 1, yield from ()")
1198 check_syntax_error(self, "def g(): f(yield 1)")
1199 check_syntax_error(self, "def g(): f(yield 1, 1)")
1200 check_syntax_error(self, "def g(): f(yield from ())")
1201 check_syntax_error(self, "def g(): f(yield from (), 1)")
1203 check_syntax_error(self, "yield")
1204 check_syntax_error(self, "yield from")
1206 check_syntax_error(self, "class foo:yield 1")
1207 check_syntax_error(self, "class foo:yield from ()")
1209 check_syntax_error(self, "def g(a:(yield)): pass")
1216 check = self.check_syntax_error
1731 check_syntax_error(self, "[i, s for i in nums for s in strs]")
1732 check_syntax_error(self, "[x if y]")
1793 check_syntax_error(self, "foo(x for x in range(10), 100)")
1794 check_syntax_error(self, "foo(100, x for x in range(10))")