Skip to content

Commit

Permalink
One more test
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn committed Sep 1, 2024
1 parent c0cf895 commit 0ec069c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Lib/test/test_syntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()):
... ...
Expand Down

0 comments on commit 0ec069c

Please sign in to comment.