Author: mattip <[email protected]>
Branch: str-dtype-improvement
Changeset: r62344:dd8e18e4b12b
Date: 2013-03-13 07:54 -0700
http://bitbucket.org/pypy/pypy/changeset/dd8e18e4b12b/
Log: astype fails for str
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
@@ -1646,6 +1646,8 @@
a = array('x').astype('S3').dtype
assert a.itemsize == 3
+ a = array([1, 2, 3.14156]).astype('S3').dtype
+ assert a.itemsize == 3
def test_base(self):
from numpypy import array
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit