Commit bcb15381 authored by Michael Arntzenius's avatar Michael Arntzenius

add test/tests/raise_2arg.py

parent 2c33f2ee
# two-argument `raise' statements where second argument is itself an exception
class A(Exception): pass
class B(Exception): pass
def f():
try: raise A, B(2)
except A as e:
print 'A', e
except B as e:
print 'B', e
f()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment