[pypy-commit] pypy matrixmath-reshape-merge: add (failing) test for slice copy
mattip
noreply at buildbot.pypy.org
Sat Dec 3 19:41:15 CET 2011
Author: mattip
Branch: matrixmath-reshape-merge
Changeset: r50092:4fa5cac612c6
Date: 2011-12-03 18:25 +0200
http://bitbucket.org/pypy/pypy/changeset/4fa5cac612c6/
Log: add (failing) test for slice copy
diff --git a/pypy/module/micronumpy/test/test_numarray.py b/pypy/module/micronumpy/test/test_numarray.py
--- a/pypy/module/micronumpy/test/test_numarray.py
+++ b/pypy/module/micronumpy/test/test_numarray.py
@@ -220,6 +220,11 @@
a = array(1)
assert a.copy() == a
+ a = arange(8)
+ b = a[::2]
+ c = b.copy()
+ assert (c == b).all()
+
def test_iterator_init(self):
from numpypy import array
a = array(range(5))
More information about the pypy-commit
mailing list