]> granicus.if.org Git - python/commitdiff
Added a test to catch the base class.
authorBarry Warsaw <barry@python.org>
Thu, 25 May 2000 23:16:54 +0000 (23:16 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 25 May 2000 23:16:54 +0000 (23:16 +0000)
Lib/test/output/test_exceptions
Lib/test/test_exceptions.py

index 5ccb7b852393cd3804061ba34551f2baad05cb00..8ecfd27ecdaee21fe225c738c84e8bea76536865 100644 (file)
@@ -21,3 +21,4 @@ SystemExit
 TypeError
 ValueError
 ZeroDivisionError
+Exception
index 9796ef4e695e4567ebddc04b7746d3ccc0e8bab1..d172ecd153b06c55ad63c542239e97edb4b6479a 100644 (file)
@@ -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)