mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Added a test to catch the base class.
This commit is contained in:
parent
9357854187
commit
992cb8ab53
2 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue