mirror of
https://github.com/python/cpython.git
synced 2025-11-01 06:01:29 +00:00
gh-134036: Update test_syntax for gh-133999 (#135204)
This commit is contained in:
parent
e004cf8fd5
commit
82415acf62
1 changed files with 3 additions and 3 deletions
|
|
@ -1436,17 +1436,17 @@
|
|||
>>> try: pass
|
||||
... except TypeError as name: raise from None
|
||||
Traceback (most recent call last):
|
||||
SyntaxError: invalid syntax
|
||||
SyntaxError: did you forget an expression between 'raise' and 'from'?
|
||||
|
||||
>>> try: pass
|
||||
... except* TypeError as name: raise from None
|
||||
Traceback (most recent call last):
|
||||
SyntaxError: invalid syntax
|
||||
SyntaxError: did you forget an expression between 'raise' and 'from'?
|
||||
|
||||
>>> match 1:
|
||||
... case 1 | 2 as abc: raise from None
|
||||
Traceback (most recent call last):
|
||||
SyntaxError: invalid syntax
|
||||
SyntaxError: did you forget an expression between 'raise' and 'from'?
|
||||
|
||||
Ensure that early = are not matched by the parser as invalid comparisons
|
||||
>>> f(2, 4, x=34); 1 $ 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue