From: Barry Warsaw Date: Thu, 25 May 2000 23:16:54 +0000 (+0000) Subject: Added a test to catch the base class. X-Git-Tag: v2.0b1~1673 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=992cb8ab53e6cf214e694366104e86e5ae184788;p=thirdparty%2FPython%2Fcpython.git Added a test to catch the base class. --- diff --git a/Lib/test/output/test_exceptions b/Lib/test/output/test_exceptions index 5ccb7b852393..8ecfd27ecdae 100644 --- a/Lib/test/output/test_exceptions +++ b/Lib/test/output/test_exceptions @@ -21,3 +21,4 @@ SystemExit TypeError ValueError ZeroDivisionError +Exception diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 9796ef4e695e..d172ecd153b0 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -94,4 +94,8 @@ r(ZeroDivisionError) try: x = 1/0 except ZeroDivisionError: pass +r(Exception) +try: x = 1/0 +except Exception, e: pass + unlink(TESTFN)