[pypy-commit] pypy numpypy-problems: add failing test - array() in interp_numarray does not handle str properly yet

mattip noreply at buildbot.pypy.org
Sun Sep 30 10:58:59 CEST 2012


Author: mattip <matti.picus at gmail.com>
Branch: numpypy-problems
Changeset: r57687:145dac350a19
Date: 2012-09-30 10:58 +0200
http://bitbucket.org/pypy/pypy/changeset/145dac350a19/

Log:	add failing test - array() in interp_numarray does not handle str
	properly yet

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
@@ -2249,6 +2249,10 @@
         a = array(['abc'],'S3')
         assert repr(a) == "array(['abc'])"
         assert str(a.dtype) == '|S3'
+        a = array(['abc'])
+        assert repr(a) == "array(['abc'])"
+        assert str(a.dtype) == '|S3'
+
        
 class AppTestPyPy(BaseNumpyAppTest):
     def setup_class(cls):


More information about the pypy-commit mailing list