Home
last modified time | relevance | path

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

/external/python/cpython2/Lib/test/
Dtest_global.py3 from test.test_support import run_unittest, check_syntax_error
18 check_syntax_error(self, prog_text_1)
26 check_syntax_error(self, prog_text_2)
35 check_syntax_error(self, prog_text_3)
Dtest_grammar.py4 from test.test_support import run_unittest, check_syntax_error, \
298 check_syntax_error(self, "f(*g(1=2))")
299 check_syntax_error(self, "f(**g(1=2))")
313 check_syntax_error(self, "lambda x: x = 2")
314 check_syntax_error(self, "lambda (None,): None")
340 check_syntax_error(self, "x + 1 = 1")
341 check_syntax_error(self, "a + 1 = b + 2")
410 check_syntax_error(self, 'print ,')
411 check_syntax_error(self, 'print >> x,')
491 check_syntax_error(self, "class foo:return 1")
[all …]
Dtest_scope.py2 from test.test_support import check_syntax_error, check_py3k_warnings, \
185 check_syntax_error(self, """\
193 check_syntax_error(self, """\
201 check_syntax_error(self, """\
211 check_syntax_error(self, """\
219 check_syntax_error(self, """\
226 check_syntax_error(self, """\
Dtest_support.py803 def check_syntax_error(testcase, statement): function
/external/python/cpython2/Lib/lib2to3/tests/data/
Dpy2_test_grammar.py11 from test.test_support import run_unittest, check_syntax_error
294 check_syntax_error(self, "f(*g(1=2))")
295 check_syntax_error(self, "f(**g(1=2))")
309 check_syntax_error(self, "lambda x: x = 2")
310 check_syntax_error(self, "lambda (None,): None")
336 check_syntax_error(self, "x + 1 = 1")
337 check_syntax_error(self, "a + 1 = b + 2")
406 check_syntax_error(self, 'print ,')
407 check_syntax_error(self, 'print >> x,')
487 check_syntax_error(self, "class foo:return 1")
[all …]
Dpy3_test_grammar.py11 from test.support import run_unittest, check_syntax_error
330 check_syntax_error(self, "f(*g(1=2))")
331 check_syntax_error(self, "f(**g(1=2))")
345 check_syntax_error(self, "lambda x: x = 2")
346 check_syntax_error(self, "lambda (None,): None")
376 check_syntax_error(self, "x + 1 = 1")
377 check_syntax_error(self, "a + 1 = b + 2")
457 check_syntax_error(self, "class foo:return 1")
460 check_syntax_error(self, "class foo:yield 1")
787 check_syntax_error(self, "[i, s for i in nums for s in strs]")
[all …]