summaryrefslogtreecommitdiff
path: root/numpy/ma/tests
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/ma/tests')
-rw-r--r--numpy/ma/tests/test_extras.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/numpy/ma/tests/test_extras.py b/numpy/ma/tests/test_extras.py
index d6cda7e70..359e07446 100644
--- a/numpy/ma/tests/test_extras.py
+++ b/numpy/ma/tests/test_extras.py
@@ -528,6 +528,12 @@ class TestCorrcoef(TestCase):
def setUp(self):
self.data = array(np.random.rand(12))
+ def test_ddof(self):
+ "Test ddof keyword"
+ x = self.data
+ assert_almost_equal(np.corrcoef(x, ddof=0), corrcoef(x, ddof=0))
+
+
def test_1d_wo_missing(self):
"Test cov on 1D variable w/o missing values"
x = self.data