summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2013-10-24 23:26:16 +0200
committerSebastian Berg <sebastian@sipsolutions.net>2013-10-24 23:26:16 +0200
commit3a01f4e11874be9db17fb24fa17c649fd45a8aff (patch)
tree70b08d11745dd0ffbb6bd92e155eb271656182c5 /numpy/core
parentef511149ebeb5e53059b75b1305d0405744b3d8a (diff)
downloadnumpy-3a01f4e11874be9db17fb24fa17c649fd45a8aff.tar.gz
TST: Initialize some arrays to to avoid valgrind warnings
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/tests/test_multiarray.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/tests/test_multiarray.py b/numpy/core/tests/test_multiarray.py
index 9f333a4a2..9d191da35 100644
--- a/numpy/core/tests/test_multiarray.py
+++ b/numpy/core/tests/test_multiarray.py
@@ -1624,7 +1624,7 @@ class TestBinop(object):
# Check behavior against both bare ndarray objects and a
# ndarray subclasses with and without their own override
- obj = cls((1,))
+ obj = cls((1,), buffer=np.ones(1,))
arr_objs = [np.array([1]),
np.array([2]).view(OtherNdarraySubclass),