[pypy-svn] r65801 - pypy/branch/pyjitpl5/pypy/jit/metainterp/test

arigo at codespeak.net arigo at codespeak.net
Wed Jun 17 15:23:32 CEST 2009


Author: arigo
Date: Wed Jun 17 15:23:32 2009
New Revision: 65801

Modified:
   pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_send.py
Log:
Improve the (skipped) test.


Modified: pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_send.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_send.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/metainterp/test/test_send.py	Wed Jun 17 15:23:32 2009
@@ -367,6 +367,10 @@
             return x.value
         res = self.meta_interp(f, [len(cases)])
         assert res == 110
+        # The generated loops don't contain a new_with_vtable at all.  This
+        # is true if we replace "if cases[y]" above with "if not cases[y]"
+        # -- so there is no good reason that it fails.
+        self.check_loops(new_with_vtable=0)
         self.check_loop_count(2)
 
     def test_three_cases(self):



More information about the Pypy-commit mailing list