[pypy-svn] r78650 - pypy/branch/jit-unroll-loops/pypy/module/pypyjit/test

hakanardo at codespeak.net hakanardo at codespeak.net
Tue Nov 2 21:36:13 CET 2010


Author: hakanardo
Date: Tue Nov  2 21:36:11 2010
New Revision: 78650

Modified:
   pypy/branch/jit-unroll-loops/pypy/module/pypyjit/test/test_pypy_c.py
Log:
fixed test

Modified: pypy/branch/jit-unroll-loops/pypy/module/pypyjit/test/test_pypy_c.py
==============================================================================
--- pypy/branch/jit-unroll-loops/pypy/module/pypyjit/test/test_pypy_c.py	(original)
+++ pypy/branch/jit-unroll-loops/pypy/module/pypyjit/test/test_pypy_c.py	Tue Nov  2 21:36:11 2010
@@ -358,6 +358,14 @@
         ops = self.get_by_bytecode("CALL_FUNCTION")
         assert len(ops) == 2
         for i, bytecode in enumerate(ops):
+            assert not bytecode.get_opnames("call")
+            assert not bytecode.get_opnames("new")
+        assert len(ops[0].get_opnames("guard")) <= 14
+        assert len(ops[1].get_opnames("guard")) <= 3
+
+        ops = self.get_by_bytecode("CALL_FUNCTION", True)
+        assert len(ops) == 2
+        for i, bytecode in enumerate(ops):
             if i == 0:
                 assert "call(getexecutioncontext)" in str(bytecode)
             else:



More information about the Pypy-commit mailing list