From: Guido van Rossum Date: Mon, 16 Dec 1991 13:10:58 +0000 (+0000) Subject: Added ZeroDivisionError except clauses. X-Git-Tag: v0.9.8~691 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7610599756b495246fe658b254e040b154d5d248;p=thirdparty%2FPython%2Fcpython.git Added ZeroDivisionError except clauses. --- diff --git a/Lib/test/testall.py b/Lib/test/testall.py index 20d9ec821ab3..a385be1decb7 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