summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_opcodes.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2006-03-15 04:58:47 (GMT)
committerGuido van Rossum <guido@python.org>2006-03-15 04:58:47 (GMT)
commit45aecf451a64fb1ebe5e74d0b00965ac8d99dff6 (patch)
treea7edcfb45ceafcffde68a3542aeba67089ea81cb /Lib/test/test_opcodes.py
parentf3175f6341ae207543a0d2d3be36c457349066e6 (diff)
downloadcpython-45aecf451a64fb1ebe5e74d0b00965ac8d99dff6.zip
cpython-45aecf451a64fb1ebe5e74d0b00965ac8d99dff6.tar.gz
cpython-45aecf451a64fb1ebe5e74d0b00965ac8d99dff6.tar.bz2
Checkpoint. 218 tests are okay; 53 are failing. Done so far:
- all classes are new-style (but ripping out classobject.[ch] isn't done) - int/int -> float - all exceptions must derive from BaseException - absolute import - 'as' and 'with' are keywords
Diffstat (limited to 'Lib/test/test_opcodes.py')
-rw-r--r--Lib/test/test_opcodes.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_opcodes.py b/Lib/test/test_opcodes.py
index c192963..742267f 100644
--- a/Lib/test/test_opcodes.py
+++ b/Lib/test/test_opcodes.py
@@ -25,9 +25,9 @@ if n != 90:
print '2.2 raise class exceptions'
-class AClass: pass
+class AClass(Exception): pass
class BClass(AClass): pass
-class CClass: pass
+class CClass(Exception): pass
class DClass(AClass):
def __init__(self, ignore):
pass
@@ -58,8 +58,8 @@ except AClass, v:
if v != b: raise TestFailed, "v!=b AClass"
# not enough arguments
-try: raise BClass, a
-except TypeError: pass
+##try: raise BClass, a
+##except TypeError: pass
try: raise DClass, a
except DClass, v: