Author: Ronan Lamy <[email protected]>
Branch: translation-cleanup
Changeset: r58294:50574051a53e
Date: 2012-10-20 23:36 +0100
http://bitbucket.org/pypy/pypy/changeset/50574051a53e/
Log: Test that all opcodes are implemented in FSFrame
diff --git a/pypy/objspace/flow/test/test_objspace.py
b/pypy/objspace/flow/test/test_objspace.py
--- a/pypy/objspace/flow/test/test_objspace.py
+++ b/pypy/objspace/flow/test/test_objspace.py
@@ -55,6 +55,12 @@
result[op.opname] += 1
return result
+def test_all_opcodes_defined():
+ opnames = set(host_bytecode_spec.method_names)
+ methods = set([name for name in dir(FlowSpaceFrame) if name.upper() ==
name])
+ handled_elsewhere = set(['EXTENDED_ARG'])
+ missing = opnames - methods - handled_elsewhere
+ assert not missing
class TestFlowObjSpace(Base):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit