Skip to content

Commit 7735157

Browse files
committed
Retire passing canonical syntax doctest guards
Remove only the three stale raise-from diagnostic guards confirmed against the pinned CPython suite and the current mega runtime. Keep all six remaining doctest guards. Assisted-by: OpenAI Codex:model version unavailable
1 parent 7c0cc4e commit 7735157

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎Lib/test/test_syntax.py‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1470,17 +1470,17 @@
14701470
14711471
Regression tests for gh-133999:
14721472
1473-
>>> try: pass # TODO: RUSTPYTHON; Wrong error message # doctest: +EXPECTED_FAILURE
1473+
>>> try: pass
14741474
... except TypeError as name: raise from None
14751475
Traceback (most recent call last):
14761476
SyntaxError: did you forget an expression between 'raise' and 'from'?
14771477
1478-
>>> try: pass # TODO: RUSTPYTHON; Wrong error message # doctest: +EXPECTED_FAILURE
1478+
>>> try: pass
14791479
... except* TypeError as name: raise from None
14801480
Traceback (most recent call last):
14811481
SyntaxError: did you forget an expression between 'raise' and 'from'?
14821482
1483-
>>> match 1: # TODO: RUSTPYTHON; Wrong error message # doctest: +EXPECTED_FAILURE
1483+
>>> match 1:
14841484
... case 1 | 2 as abc: raise from None
14851485
Traceback (most recent call last):
14861486
SyntaxError: did you forget an expression between 'raise' and 'from'?

0 commit comments

Comments
 (0)