Parse named expressions

This commit is contained in:
Dave Halter
2019-06-02 23:34:37 +02:00
parent 5430415d44
commit a7aa23a7f0
4 changed files with 21 additions and 5 deletions

View File

@@ -189,3 +189,7 @@ def test_no_error_nodes(each_version):
check(child)
check(parse("if foo:\n bar", version=each_version))
def test_named_expression(works_ge_py38):
works_ge_py38.parse("(a := 1, a + 1)")