From ae631f7f4588adb3f0077ae80c2ccd530fb5ccc5 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 1 Oct 1997 04:41:05 +0000 Subject: [PATCH] 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?) --- Lib/test/test_opcodes.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Lib/test/test_opcodes.py b/Lib/test/test_opcodes.py index 107b697dd5..15c9dda5cb 100644 --- a/Lib/test/test_opcodes.py +++ b/Lib/test/test_opcodes.py @@ -49,10 +49,9 @@ a = AClass() b = BClass() try: raise AClass, b -except BClass, v: raise TestFailed -except AClass, v: +except BClass, v: if v != b: raise TestFailed - +else: raise TestFailed try: raise b except AClass, v: -- 2.50.0