[pypy-commit] pypy default: fix test

arigo noreply at buildbot.pypy.org
Fri Nov 28 14:57:44 CET 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r74754:ec0b383167ab
Date: 2014-11-28 14:56 +0100
http://bitbucket.org/pypy/pypy/changeset/ec0b383167ab/

Log:	fix test

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
@@ -127,12 +127,13 @@
         assert result == 3 ** 2
         self.check_trace_count(1)
         self.check_simple_loop({
-            'call': 3,
+            'call': 1,
             'float_add': 1,
             'float_eq': 3,
             'float_mul': 2,
             'float_ne': 1,
             'getarrayitem_gc': 1,
+            'getarrayitem_raw': 1,     # read the errno
             'guard_false': 4,
             'guard_not_invalidated': 1,
             'guard_true': 3,
@@ -144,6 +145,7 @@
             'raw_load': 2,
             'raw_store': 1,
             'setarrayitem_gc': 1,
+            'setarrayitem_raw': 1,     # write the errno
         })
 
     def define_pow_int():


More information about the pypy-commit mailing list