bpo-43892: Make match patterns explicit in the AST (GH-25585)
Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
diff --git a/Lib/test/test_patma.py b/Lib/test/test_patma.py
index 40580be..f327552 100644
--- a/Lib/test/test_patma.py
+++ b/Lib/test/test_patma.py
@@ -2857,6 +2857,22 @@ class Class:
self.assertIs(y, None)
self.assertIs(z, None)
+ @no_perf
+ def test_patma_283(self):
+ self.assert_syntax_error("""
+ match ...:
+ case {0+0: _}:
+ pass
+ """)
+
+ @no_perf
+ def test_patma_284(self):
+ self.assert_syntax_error("""
+ match ...:
+ case {f"": _}:
+ pass
+ """)
+
class PerfPatma(TestPatma):