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

scipy-svn@scip... scipy-svn@scip...
Sat Oct 25 02:36:46 CDT 2008


Author: cdavid
Date: 2008-10-25 02:36:42 -0500 (Sat, 25 Oct 2008)
New Revision: 4829

Modified:
   trunk/scipy/stats/tests/test_stats.py
Log:
Remove double TestMedian, which shadows some median tests.

Modified: trunk/scipy/stats/tests/test_stats.py
===================================================================
--- trunk/scipy/stats/tests/test_stats.py	2008-10-23 12:30:20 UTC (rev 4828)
+++ trunk/scipy/stats/tests/test_stats.py	2008-10-25 07:36:42 UTC (rev 4829)
@@ -625,15 +625,6 @@
             A += val
         assert_almost_equal(stats.mean(a,axis=None),A/(5*3.0*5))
 
-class TestMedian(TestCase):
-    def test_basic(self):
-        a1 = [3,4,5,10,-3,-5,6]
-        a2 = [3,-6,-2,8,7,4,2,1]
-        a3 = [3.,4,5,10,-3,-5,-6,7.0]
-        assert_equal(stats.median(a1),4)
-        assert_equal(stats.median(a2),2.5)
-        assert_equal(stats.median(a3),3.5)
-
 class TestPercentile(TestCase):
     def setUp(self):
         self.a1 = [3,4,5,10,-3,-5,6]



More information about the Scipy-svn mailing list