[pypy-svn] r78143 - pypy/branch/cleanup-dict-impl/pypy/module/pypyjit/test

arigo at codespeak.net arigo at codespeak.net
Wed Oct 20 17:45:14 CEST 2010


Author: arigo
Date: Wed Oct 20 17:45:13 2010
New Revision: 78143

Modified:
   pypy/branch/cleanup-dict-impl/pypy/module/pypyjit/test/test_pypy_c.py
Log:
(cfbolz, arigo) Now withmapdict is the default with the JIT.


Modified: pypy/branch/cleanup-dict-impl/pypy/module/pypyjit/test/test_pypy_c.py
==============================================================================
--- pypy/branch/cleanup-dict-impl/pypy/module/pypyjit/test/test_pypy_c.py	(original)
+++ pypy/branch/cleanup-dict-impl/pypy/module/pypyjit/test/test_pypy_c.py	Wed Oct 20 17:45:13 2010
@@ -278,7 +278,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")) <= 3     # we get 2 withmapdict
+        assert len(ops[0].get_opnames("guard")) <= 2
         assert not ops[1] # second LOOKUP_METHOD folded away
 
         ops = self.get_by_bytecode("CALL_METHOD")
@@ -323,8 +323,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")) <= 3    # we get 2 withmapdict
-        assert len(ops[0].get_opnames("getfield")) <= 5 # we get <5 withmapdict
+        assert len(ops[0].get_opnames("guard")) <= 2
+        assert len(ops[0].get_opnames("getfield")) <= 4
         assert not ops[1] # second LOOKUP_METHOD folded away
 
     def test_default_and_kw(self):



More information about the Pypy-commit mailing list