mirror of https://github.com/python/cpython
Added a test to catch the base class.
This commit is contained in:
parent
9357854187
commit
992cb8ab53
|
@ -21,3 +21,4 @@ SystemExit
|
|||
TypeError
|
||||
ValueError
|
||||
ZeroDivisionError
|
||||
Exception
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue