From 0ec069cb7441533e57cbcfcc878361a2122d8f5d Mon Sep 17 00:00:00 2001 From: sobolevn Date: Sun, 1 Sep 2024 12:14:15 +0300 Subject: [PATCH] One more test --- Lib/test/test_syntax.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py index 6e326810617e6f..076bc0aef85757 100644 --- a/Lib/test/test_syntax.py +++ b/Lib/test/test_syntax.py @@ -1946,6 +1946,12 @@ Traceback (most recent call last): SyntaxError: cannot use pattern target as tuple + >>> match ...: + ... case 42 as (a + 1): + ... ... + Traceback (most recent call last): + SyntaxError: cannot use pattern target as expression + >>> match ...: ... case (32 as x) | (42 as a()): ... ...