MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_expr_stmt

Method test_expr_stmt

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

Source from the content-addressed store, hash-verified

765 # Tested below
766
767 def test_expr_stmt(self):
768 # (exprlist '=')* exprlist
769 1
770 1, 2, 3
771 x = 1
772 x = 1, 2, 3
773 x = y = z = 1, 2, 3
774 x, y, z = 1, 2, 3
775 abc = a, b, c = x, y, z = xyz = 1, 2, (3, 4)
776
777 check_syntax_error(self, "x + 1 = 1")
778 check_syntax_error(self, "a + 1 = b + 2")
779
780 # Check the heuristic for print & exec covers significant cases
781 # 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