From 2ff16f10bc12d0b6f17b114beacfcceebabb4325 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 25 May 2000 23:16:54 +0000 Subject: Added a test to catch the base class. --- Lib/test/test_exceptions.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Lib/test/test_exceptions.py') diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 9796ef4e69..d172ecd153 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) -- cgit v1.2.1