summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'):