Split tests with disjoint concerns

This commit is contained in:
yoff
2026-07-21 13:39:48 +02:00
parent 90c1ddfd49
commit 1068add0ed
2 changed files with 5 additions and 6 deletions

View File

@@ -0,0 +1,4 @@
# Starred-target edge cases — wired in the new CFG.
# Starred target in a Tuple LHS.
*head, tail = [1, 2, 3] # $ cfgdefines=head cfgdefines=tail

View File

@@ -1,4 +1,4 @@
# Walrus and starred-target edge cases — wired in the new CFG.
# Walrus edge cases — wired in the new CFG.
# Walrus in expression context.
if (y := 5) > 0: # $ cfgdefines=y
@@ -7,8 +7,3 @@ if (y := 5) > 0: # $ cfgdefines=y
# Walrus in a comprehension. The comprehension introduces a synthetic
# `.0` parameter bound to the iterable.
_ = [w for _ in range(3) if (w := 1)] # $ cfgdefines=_ cfgdefines=w cfgdefines=.0
# Starred target in a Tuple LHS.
*head, tail = [1, 2, 3] # $ cfgdefines=head cfgdefines=tail