8000 gh-134036: Update test_syntax for gh-133999 (#135204) · python/cpython@82415ac · GitHub
[go: up one dir, main page]

Skip to content

Commit 82415ac

Browse files
authored
gh-134036: Update test_syntax for gh-133999 (#135204)
1 parent e004cf8 commit 82415ac

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)
0