Skip to content

Commit 65d2aca

Browse files
committed
Add test in syntax_comprehension.py
1 parent 0719231 commit 65d2aca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

extra_tests/snippets/syntax_comprehension.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,8 @@
4141
assert 'c' not in locals()
4242
assert 'b' not in globals()
4343
assert 'c' not in globals()
44+
45+
46+
def f():
47+
# Test no panic occured.
48+
[[x := 1 for j in range(5)] for i in range(5)]

0 commit comments

Comments
 (0)