diff options
author | Guido van Rossum <guido@python.org> | 1991-12-16 13:10:58 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1991-12-16 13:10:58 (GMT) |
commit | 7610599756b495246fe658b254e040b154d5d248 (patch) | |
tree | ce6692067c9519cb67807fa158861244048d23f1 /Lib | |
parent | befa2936d0179c25c76b343c7d4a0ef14635d928 (diff) | |
download | cpython-7610599756b495246fe658b254e040b154d5d248.zip cpython-7610599756b495246fe658b254e040b154d5d248.tar.gz cpython-7610599756b495246fe658b254e040b154d5d248.tar.bz2 |
Added ZeroDivisionError except clauses.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/testall.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/testall.py b/Lib/test/testall.py index 20d9ec8..a385be1 100644 --- a/Lib/test/testall.py +++ b/Lib/test/testall.py @@ -177,10 +177,12 @@ print 'try_stmt' # 'try' ':' suite (except_clause ':' suite)* ['finally' ':' sui try: pass try: 1/0 except RuntimeError: pass +except ZeroDivisionError: pass try: 1/0 except EOFError: pass except TypeError, msg: pass except RuntimeError, msg: pass +except ZeroDivisionError, msg: pass except: pass try: pass finally: pass @@ -291,6 +293,7 @@ for i in range(10): try: 1/0 except NameError: pass except RuntimeError: pass + except ZeroDivisionError: pass except TypeError: pass finally: pass try: pass |