summaryrefslogtreecommitdiff
path: root/numpy/ma
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2012-11-23 10:19:24 -0700
committerCharles Harris <charlesr.harris@gmail.com>2012-11-23 10:35:03 -0700
commit1871820bf16635270a124ba577282ec00cb093a7 (patch)
tree0d58d63f9a732587a6bbbe2ac6d19c4a10dbdb5d /numpy/ma
parent65ed5ebfeac3fb6ff8896bf624e1e08113901b76 (diff)
downloadnumpy-1871820bf16635270a124ba577282ec00cb093a7.tar.gz
MAINT: In test_varstd_specialcases out parameters should be 0-d.
The original worked, but that is because the masked array methods are not properly checking dimensions in this case. That should also be fixed at some point.
Diffstat (limited to 'numpy/ma')
-rw-r--r--numpy/ma/tests/test_core.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/ma/tests/test_core.py b/numpy/ma/tests/test_core.py
index 48ea6e4f9..d4214c02d 100644
--- a/numpy/ma/tests/test_core.py
+++ b/numpy/ma/tests/test_core.py
@@ -2718,8 +2718,8 @@ class TestMaskedArrayMathMethods(TestCase):
def test_varstd_specialcases(self):
"Test a special case for var"
- nout = np.empty(1, dtype=float)
- mout = empty(1, dtype=float)
+ nout = np.array(-1, dtype=float)
+ mout = array(-1, dtype=float)
#
x = array(arange(10), mask=True)
for methodname in ('var', 'std'):