Author: Matti Picus <[email protected]>
Branch:
Changeset: r60961:18f31c26605b
Date: 2013-02-08 10:49 +0200
http://bitbucket.org/pypy/pypy/changeset/18f31c26605b/
Log: failing test - SliceArray has no astype
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
@@ -1640,7 +1640,7 @@
assert _weakref.ref(a)
def test_astype(self):
- from _numpypy import array
+ from _numpypy import array, arange
b = array(1).astype(float)
assert b == 1
assert b.dtype == float
@@ -1653,7 +1653,9 @@
b = array([0, 1, 2], dtype=complex).astype(bool)
assert (b == [False, True, True]).all()
assert b.dtype == 'bool'
-
+
+ a = arange(6, dtype='f4').reshape(2,3)
+ b = a.astype('i4')
def test_base(self):
from _numpypy import array
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit