Author: Brian Kearns <[email protected]>
Branch: 
Changeset: r70748:2b3387207a65
Date: 2014-04-18 00:46 -0400
http://bitbucket.org/pypy/pypy/changeset/2b3387207a65/

Log:    enable slice test_zjit

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
@@ -353,14 +353,21 @@
     def test_slice(self):
         result = self.run("slice")
         assert result == 18
-        py.test.skip("don't run for now")
-        self.check_simple_loop({'raw_load': 2,
-                                'float_add': 1,
-                                'raw_store': 1,
-                                'int_add': 3,
-                                'int_ge': 1, 'guard_false': 1,
-                                'jump': 1,
-                                'arraylen_gc': 1})
+        self.check_trace_count(1)
+        self.check_simple_loop({
+            'float_add': 1,
+            'getarrayitem_gc': 3,
+            'guard_false': 1,
+            'guard_not_invalidated': 1,
+            'guard_true': 3,
+            'int_add': 9,
+            'int_ge': 1,
+            'int_lt': 3,
+            'jump': 1,
+            'raw_load': 2,
+            'raw_store': 1,
+            'setarrayitem_gc': 3,
+        })
 
     def define_take():
         return """
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to