]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Added ZeroDivisionError except clauses.
authorGuido van Rossum <guido@python.org>
Mon, 16 Dec 1991 13:10:58 +0000 (13:10 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 16 Dec 1991 13:10:58 +0000 (13:10 +0000)
Lib/test/testall.py

index 20d9ec821ab3dad94c96f13b45629977f4e6f720..a385be1decb7d7439cc39445b69ac6658357f3f3 100644 (file)
@@ -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