[pypy-commit] pypy numpy-multidim: fix test, skip the old ones

fijal noreply at buildbot.pypy.org
Fri Oct 28 22:11:12 CEST 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: numpy-multidim
Changeset: r48592:4fde3633c155
Date: 2011-10-28 22:10 +0200
http://bitbucket.org/pypy/pypy/changeset/4fde3633c155/

Log:	fix test, skip the old ones

diff --git a/pypy/module/micronumpy/test/test_zjit.py b/pypy/module/micronumpy/test/test_zjit.py
--- a/pypy/module/micronumpy/test/test_zjit.py
+++ b/pypy/module/micronumpy/test/test_zjit.py
@@ -192,13 +192,13 @@
         c -> 3
         """)
         assert result == 18
-        self.check_loops({'int_mul': 1, 'getarrayitem_raw': 2, 'float_add': 1,
+        self.check_loops({'int_mul': 2, 'getarrayitem_raw': 2, 'float_add': 1,
                           'setarrayitem_raw': 1, 'int_add': 3,
                           'int_lt': 1, 'guard_true': 1, 'jump': 1})
-        # XXX int_add should be 1, not 3, think about it
 
 class TestNumpyOld(LLJitMixin):
     def setup_class(cls):
+        py.test.skip("old")
         from pypy.module.micronumpy.compile import FakeSpace
         from pypy.module.micronumpy.interp_dtype import W_Float64Dtype
         


More information about the pypy-commit mailing list