Skip to content

Commit f5396de

Browse files
vstinnerPranjal095
authored andcommitted
pythongh-134036: Update test_syntax for pythongh-133999 (python#135204)
1 parent f3fc6f1 commit f5396de

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Lib/test/test_syntax.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1436,17 +1436,17 @@
14361436
>>> try: pass
14371437
... except TypeError as name: raise from None
14381438
Traceback (most recent call last):
1439-
SyntaxError: invalid syntax
1439+
SyntaxError: did you forget an expression between 'raise' and 'from'?
14401440
14411441
>>> try: pass
14421442
... except* TypeError as name: raise from None
14431443
Traceback (most recent call last):
1444-
SyntaxError: invalid syntax
1444+
SyntaxError: did you forget an expression between 'raise' and 'from'?
14451445
14461446
>>> match 1:
14471447
... case 1 | 2 as abc: raise from None
14481448
Traceback (most recent call last):
1449-
SyntaxError: invalid syntax
1449+
SyntaxError: did you forget an expression between 'raise' and 'from'?
14501450
14511451
Ensure that early = are not matched by the parser as invalid comparisons
14521452
>>> f(2, 4, x=34); 1 $ 2

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy