[pypy-svn] r77868 - pypy/trunk/pypy/module/pypyjit/test

arigo at codespeak.net arigo at codespeak.net
Wed Oct 13 14:41:01 CEST 2010


Author: arigo
Date: Wed Oct 13 14:40:57 2010
New Revision: 77868

Modified:
   pypy/trunk/pypy/module/pypyjit/test/test_pypy_c.py
Log:
Broken during the merge of better-map-instances, by the fact
that I disabled withmapdict in Ojit translations for now.


Modified: pypy/trunk/pypy/module/pypyjit/test/test_pypy_c.py
==============================================================================
--- pypy/trunk/pypy/module/pypyjit/test/test_pypy_c.py	(original)
+++ pypy/trunk/pypy/module/pypyjit/test/test_pypy_c.py	Wed Oct 13 14:40:57 2010
@@ -272,7 +272,7 @@
         assert len(ops) == 2
         assert not ops[0].get_opnames("call")
         assert not ops[0].get_opnames("new")
-        assert len(ops[0].get_opnames("guard")) <= 2
+        assert len(ops[0].get_opnames("guard")) <= 3     # we get 2 withmapdict
         assert not ops[1] # second LOOKUP_METHOD folded away
 
         ops = self.get_by_bytecode("CALL_METHOD")
@@ -317,8 +317,8 @@
         assert len(ops) == 2
         assert not ops[0].get_opnames("call")
         assert not ops[0].get_opnames("new")
-        assert len(ops[0].get_opnames("guard")) <= 2
-        assert len(ops[0].get_opnames("getfield")) < 5
+        assert len(ops[0].get_opnames("guard")) <= 3    # we get 2 withmapdict
+        assert len(ops[0].get_opnames("getfield")) <= 5 # we get <5 withmapdict
         assert not ops[1] # second LOOKUP_METHOD folded away
 
     def test_default_and_kw(self):



More information about the Pypy-commit mailing list