Author: Maciej Fijalkowski <[email protected]>
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):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit