diff options
Diffstat (limited to 'Lib/test/test_grammar.py')
-rw-r--r-- | Lib/test/test_grammar.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py index 3f1e1fa51fd..3ea4e47ca50 100644 --- a/Lib/test/test_grammar.py +++ b/Lib/test/test_grammar.py @@ -1375,6 +1375,8 @@ class GrammarTests(unittest.TestCase): try: 1/0 except (EOFError, TypeError, ZeroDivisionError): pass try: 1/0 + except EOFError, TypeError, ZeroDivisionError: pass + try: 1/0 except (EOFError, TypeError, ZeroDivisionError) as msg: pass try: pass finally: pass @@ -1398,6 +1400,8 @@ class GrammarTests(unittest.TestCase): try: 1/0 except* (EOFError, TypeError, ZeroDivisionError): pass try: 1/0 + except* EOFError, TypeError, ZeroDivisionError: pass + try: 1/0 except* (EOFError, TypeError, ZeroDivisionError) as msg: pass try: pass finally: pass |