summaryrefslogtreecommitdiff
path: root/numpy/lib/tests
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2010-07-07 04:31:55 +0000
committerCharles Harris <charlesr.harris@gmail.com>2010-07-07 04:31:55 +0000
commitcda4d595f074f09d8cf113d37cb9c8079c6752d8 (patch)
tree14156314d4f206bd7f169cdf2e6220ee86cfc160 /numpy/lib/tests
parenta5b4a598d0ef164dba7e0876133c3ea78b96aab8 (diff)
downloadnumpy-cda4d595f074f09d8cf113d37cb9c8079c6752d8.tar.gz
Don't deprecated bias keyword, just add ddof.
Diffstat (limited to 'numpy/lib/tests')
-rw-r--r--numpy/lib/tests/test_function_base.py4
-rw-r--r--numpy/lib/tests/test_regression.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py
index 6be1b204f..5d0f8aa45 100644
--- a/numpy/lib/tests/test_function_base.py
+++ b/numpy/lib/tests/test_function_base.py
@@ -828,11 +828,11 @@ class TestCorrCoef(TestCase):
B = array([[ 0.10377691, 0.5417086 , 0.49807457],
[ 0.82872117, 0.77801674, 0.39226705],
[ 0.9314666 , 0.66800209, 0.03538394]])
- assert_almost_equal(corrcoef(A, ddof=1),
+ assert_almost_equal(corrcoef(A),
array([[ 1. , 0.9379533 , -0.04931983],
[ 0.9379533 , 1. , 0.30007991],
[-0.04931983, 0.30007991, 1. ]]))
- assert_almost_equal(corrcoef(A, B, ddof=1),
+ assert_almost_equal(corrcoef(A, B),
array([[ 1. , 0.9379533 , -0.04931983,
0.30151751, 0.66318558, 0.51532523],
[ 0.9379533 , 1. , 0.30007991,
diff --git a/numpy/lib/tests/test_regression.py b/numpy/lib/tests/test_regression.py
index c5483556c..a8804ac3a 100644
--- a/numpy/lib/tests/test_regression.py
+++ b/numpy/lib/tests/test_regression.py
@@ -14,8 +14,8 @@ class TestRegression(TestCase):
"""Ticket #91"""
x = np.random.random((3,3))
y = x.copy()
- np.cov(x, rowvar=1, ddof=1)
- np.cov(y, rowvar=0, ddof=1)
+ np.cov(x, rowvar=1)
+ np.cov(y, rowvar=0)
assert_array_equal(x,y)
def test_mem_digitize(self,level=rlevel):