[pypy-commit] pypy default: a failing test

fijal noreply at buildbot.pypy.org
Sun Oct 28 18:41:48 CET 2012


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: 
Changeset: r58539:d7db0a927f92
Date: 2012-10-28 18:41 +0100
http://bitbucket.org/pypy/pypy/changeset/d7db0a927f92/

Log:	a failing test

diff --git a/pypy/jit/metainterp/test/test_list.py b/pypy/jit/metainterp/test/test_list.py
--- a/pypy/jit/metainterp/test/test_list.py
+++ b/pypy/jit/metainterp/test/test_list.py
@@ -128,6 +128,17 @@
         res = self.interp_operations(f, [], listops=True)
         assert res == 10
 
+    def test_arraycopy_bug(self): 
+        def f():
+            l = [1, 2, 3, 4]
+            l2 = [1, 2, 3, 4]
+            l[2] = 13
+            l2[0:len(l2)] = l[:]
+            return l2[0] + l2[1] + l2[2] + l2[3]
+
+        res = self.interp_operations(f, [], listops=True)
+        assert res == 10       
+
     def test_arraycopy_full(self):
         jitdriver = JitDriver(greens = [], reds = ['n'])
         def f(n):


More information about the pypy-commit mailing list