[Scipy-svn] r4636 - trunk/scipy/stats/tests

scipy-svn@scip... scipy-svn@scip...
Mon Aug 11 11:17:39 CDT 2008


Author: pierregm
Date: 2008-08-11 11:17:36 -0500 (Mon, 11 Aug 2008)
New Revision: 4636

Modified:
   trunk/scipy/stats/tests/test_mstats.py
Log:
fixed test_cov test to reflect the new numpy.ma.cov modifications

Modified: trunk/scipy/stats/tests/test_mstats.py
===================================================================
--- trunk/scipy/stats/tests/test_mstats.py	2008-08-11 01:20:59 UTC (rev 4635)
+++ trunk/scipy/stats/tests/test_mstats.py	2008-08-11 16:17:36 UTC (rev 4636)
@@ -192,9 +192,12 @@
                             winter.var(ddof=0))
         assert_almost_equal(mstats.cov(winter,winter,bias=False),
                             winter.var(ddof=1))
-        assert_almost_equal(mstats.cov(winter,spring), 7.7)
-        assert_almost_equal(mstats.cov(winter,summer), 19.1111111, 7)
-        assert_almost_equal(mstats.cov(winter,fall), 20)
+        assert_almost_equal(mstats.cov(winter,spring)[0,1], 7.7)
+        assert_almost_equal(mstats.cov(winter,spring)[1,0], 7.7)
+        assert_almost_equal(mstats.cov(winter,summer)[0,1], 19.1111111, 7)
+        assert_almost_equal(mstats.cov(winter,summer)[1,0], 19.1111111, 7)
+        assert_almost_equal(mstats.cov(winter,fall)[0,1], 20)
+        assert_almost_equal(mstats.cov(winter,fall)[1,0], 20)
 
 
 class TestTrimming(TestCase):



More information about the Scipy-svn mailing list