Author: mattip <[email protected]>
Branch: object-dtype2
Changeset: r76696:7e5953936ded
Date: 2015-04-03 00:23 +0300
http://bitbucket.org/pypy/pypy/changeset/7e5953936ded/
Log: add test
diff --git a/pypy/module/micronumpy/test/test_object_arrays.py
b/pypy/module/micronumpy/test/test_object_arrays.py
--- a/pypy/module/micronumpy/test/test_object_arrays.py
+++ b/pypy/module/micronumpy/test/test_object_arrays.py
@@ -24,7 +24,7 @@
a = np.array(["foo"], dtype=object)
b = np.array(["bar"], dtype=object)
-
+ raises(TypeError, np.add, a, 1)
res = a + b
assert res[0] == "foobar"
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit