mirror of
https://github.com/python/cpython.git
synced 2025-10-07 23:51:16 +00:00
bpo-45292: [PEP-654] add except* (GH-29581)
This commit is contained in:
parent
850aefc2c6
commit
d60457a667
34 changed files with 7070 additions and 3332 deletions
|
@ -241,6 +241,8 @@ class ExceptionTests(unittest.TestCase):
|
|||
check('def f():\n continue', 2, 3)
|
||||
check('def f():\n break', 2, 3)
|
||||
check('try:\n pass\nexcept:\n pass\nexcept ValueError:\n pass', 3, 1)
|
||||
check('try:\n pass\nexcept*:\n pass', 3, 8)
|
||||
check('try:\n pass\nexcept*:\n pass\nexcept* ValueError:\n pass', 3, 8)
|
||||
|
||||
# Errors thrown by tokenizer.c
|
||||
check('(0x+1)', 1, 3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue