Commit 753da4f9 authored by Guido van Rossum's avatar Guido van Rossum

There was actually a test that ensured that raising an exception A

with an instance of a derived class B would really raise an A, not a
B.  Since Barry fixed this anomalous behaviour, I though I might as
well fix the test!  (Hmm, Barry, did you not run the tests or did you
miss that test_opcodes failed?)
parent 0c57f862
...@@ -49,10 +49,9 @@ a = AClass() ...@@ -49,10 +49,9 @@ a = AClass()
b = BClass() b = BClass()
try: raise AClass, b try: raise AClass, b
except BClass, v: raise TestFailed except BClass, v:
except AClass, v:
if v != b: raise TestFailed if v != b: raise TestFailed
else: raise TestFailed
try: raise b try: raise b
except AClass, v: except AClass, v:
......
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