Author: Brian Kearns <[email protected]>
Branch: 
Changeset: r61119:7fc764cd60bf
Date: 2013-02-12 02:07 -0500
http://bitbucket.org/pypy/pypy/changeset/7fc764cd60bf/

Log:    another numpypy string array test

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
@@ -2575,6 +2575,11 @@
         assert a[0] == 'abc'
         assert a[1] == 'defg'
         assert a[2] == 'ab'
+        a = array(['abc', 'defg', 'ab'], 'S3')
+        assert str(a.dtype) == '|S3'
+        assert a[0] == 'abc'
+        assert a[1] == 'def'
+        assert a[2] == 'ab'
         raises(TypeError, a, 'sum')
         raises(TypeError, 'a+a')
 
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to