Author: Romain Guillebert <romain...@gmail.com>
Branch: object-dtype
Changeset: r75537:70ad29712173
Date: 2015-01-26 16:01 +0100
http://bitbucket.org/pypy/pypy/changeset/70ad29712173/

Log:    Test for adding 2 object arrays

diff --git a/pypy/module/micronumpy/test/test_dtypes.py 
b/pypy/module/micronumpy/test/test_dtypes.py
--- a/pypy/module/micronumpy/test/test_dtypes.py
+++ b/pypy/module/micronumpy/test/test_dtypes.py
@@ -1354,3 +1354,12 @@
         a = np.ndarray([5], dtype="O")
 
         assert a[0] == None
+
+    def test_object_arrays_add(self):
+        import numpy as np
+
+        a = np.array(["foo"], dtype=object)
+        b = np.array(["bar"], dtype=object)
+
+        res = a + b
+        assert res[0] == "foobar"
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to