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

Reply via email to