MCPcopy Index your code
hub / github.com/python/cpython / test_expr_stmt

Method test_expr_stmt

Lib/test/test_grammar.py:740–751  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

738 # Tested below
739
740 def test_expr_stmt(self):
741 # (exprlist '=')* exprlist
742 1
743 1, 2, 3
744 x = 1
745 x = 1, 2, 3
746 x = y = z = 1, 2, 3
747 x, y, z = 1, 2, 3
748 abc = a, b, c = x, y, z = xyz = 1, 2, (3, 4)
749
750 check_syntax_error(self, "x + 1 = 1")
751 check_syntax_error(self, "a + 1 = b + 2")
752
753 # Check the heuristic for print & exec covers significant cases
754 # As well as placing some limits on false positives

Callers

nothing calls this directly

Calls 1

check_syntax_errorFunction · 0.90

Tested by

no test coverage detected