summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-10-01 04:41:05 (GMT)
committerGuido van Rossum <guido@python.org>1997-10-01 04:41:05 (GMT)
commitae631f7f4588adb3f0077ae80c2ccd530fb5ccc5 (patch)
tree7264d77e455db0337f311c246a6b7b279215d3e5 /Lib/test
parenta008fa52be8acac0de95a03e4dc030d444e6b426 (diff)
downloadcpython-ae631f7f4588adb3f0077ae80c2ccd530fb5ccc5.zip
cpython-ae631f7f4588adb3f0077ae80c2ccd530fb5ccc5.tar.gz
cpython-ae631f7f4588adb3f0077ae80c2ccd530fb5ccc5.tar.bz2
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?)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_opcodes.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_opcodes.py b/Lib/test/test_opcodes.py
index 107b697..15c9dda 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: