summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_compile.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_compile.py')
-rw-r--r--Lib/test/test_compile.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/test/test_compile.py b/Lib/test/test_compile.py
index ba0bcc9..ae23aea 100644
--- a/Lib/test/test_compile.py
+++ b/Lib/test/test_compile.py
@@ -1409,6 +1409,16 @@ class TestSpecifics(unittest.TestCase):
for kw in ("except", "except*"):
exec(code % kw, g, l);
+ def test_regression_gh_120225(self):
+ async def name_4():
+ match b'':
+ case True:
+ pass
+ case name_5 if f'e':
+ {name_3: name_4 async for name_2 in name_5}
+ case []:
+ pass
+ [[]]
@requires_debug_ranges()
class TestSourcePositions(unittest.TestCase):