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

scipy-svn@scip... scipy-svn@scip...
Tue Nov 25 07:40:18 CST 2008


Author: josef
Date: 2008-11-25 07:40:11 -0600 (Tue, 25 Nov 2008)
New Revision: 5192

Modified:
   trunk/scipy/stats/tests/test_continuous_basic.py
   trunk/scipy/stats/tests/test_continuous_extra.py
   trunk/scipy/stats/tests/test_discrete_basic.py
   trunk/scipy/stats/tests/test_discrete_chisquare.py
Log:
decorate all new distributions test as slow

Modified: trunk/scipy/stats/tests/test_continuous_basic.py
===================================================================
--- trunk/scipy/stats/tests/test_continuous_basic.py	2008-11-25 05:07:33 UTC (rev 5191)
+++ trunk/scipy/stats/tests/test_continuous_basic.py	2008-11-25 13:40:11 UTC (rev 5192)
@@ -44,7 +44,7 @@
     ['frechet_r', (1.8928171603534227,)],
     ['gamma', (1.9932305483800778,)],
     ['gausshyper', (13.763771604130699, 3.1189636648681431,
-                    2.5145980350183019, 5.1811649903971615)],
+                    2.5145980350183019, 5.1811649903971615)],  #veryslow
     ['genexpon', (9.1325976465418908, 16.231956600590632, 3.2819552690843983)],
     ['genextreme', (3.3184017469423535,)],
     ['gengamma', (4.4162385429431925, 3.1193091679242761)],
@@ -89,8 +89,8 @@
     ['powerlognorm', (2.1413923530064087, 0.44639540782048337)],
     ['powernorm', (4.4453652254590779,)],
     ['rayleigh', ()],
-    ['rdist', (3.8266985793976525,)],
-    ['rdist', (541.0,)],   # from ticket #758
+    ['rdist', (3.8266985793976525,)],  #veryslow
+    ['rdist', (541.0,)],   # from ticket #758    #veryslow
     ['recipinvgauss', (0.63004267809369119,)],
     ['reciprocal', (0.0062309367010521255, 1.0062309367010522)],
     ['rice', (0.7749725210111873,)],
@@ -122,6 +122,7 @@
 ##    ['genextreme', (-0.01,)]
 ##    ]
 
+@npt.dec.slow
 def test_cont_basic():
     for distname, arg in distcont[:]:
         distfn = getattr(stats, distname)
@@ -215,6 +216,7 @@
 
 distmiss = [[dist,args] for dist,args in distcont if dist in distmissing]
 
+@npt.dec.slow
 def test_missing_distributions():
     # K-S test of distributions missing in test_distributions.py
     for dist, args in distmiss:

Modified: trunk/scipy/stats/tests/test_continuous_extra.py
===================================================================
--- trunk/scipy/stats/tests/test_continuous_extra.py	2008-11-25 05:07:33 UTC (rev 5191)
+++ trunk/scipy/stats/tests/test_continuous_extra.py	2008-11-25 13:40:11 UTC (rev 5192)
@@ -16,6 +16,7 @@
 
 DECIMAL = 5
 
+@npt.dec.slow
 def test_cont_extra():
     for distname, arg in distcont[:]:
         distfn = getattr(stats, distname)
@@ -27,6 +28,7 @@
         yield check_loc_scale, distfn, arg, distname + \
               ' loc, scale test'
 
+@npt.dec.slow
 def _est_cont_skip():
     for distname, arg in distcont:
         distfn = getattr(stats, distname)        

Modified: trunk/scipy/stats/tests/test_discrete_basic.py
===================================================================
--- trunk/scipy/stats/tests/test_discrete_basic.py	2008-11-25 05:07:33 UTC (rev 5191)
+++ trunk/scipy/stats/tests/test_discrete_basic.py	2008-11-25 13:40:11 UTC (rev 5192)
@@ -24,7 +24,7 @@
                            # looking closer, mean, var should be inf for arg=2
 
 
-
+@npt.dec.slow
 def test_discrete_basic():
     for distname, arg in distdiscrete:
         distfn = getattr(stats,distname)
@@ -41,9 +41,8 @@
         skurt = stats.kurtosis(rvs)
         sskew = stats.skew(rvs)
         yield check_sample_skew_kurt, distfn, arg, skurt, sskew, distname
-        yield check_entropy, distfn, arg, distname + \
-              ' entropy nan test'
-
+        
+@npt.dec.slow
 def test_discrete_extra():
     for distname, arg in distdiscrete:
         distfn = getattr(stats,distname)
@@ -51,7 +50,10 @@
               ' ppf limit test'
         yield check_isf_limits, distfn, arg, distname + \
               ' isf limit test'
+        yield check_entropy, distfn, arg, distname + \
+              ' entropy nan test'
 
+@npt.dec.slow
 def _est_discrete_private():
     #testing private methods mostly for debugging
     #   some tests might fail by design,

Modified: trunk/scipy/stats/tests/test_discrete_chisquare.py
===================================================================
--- trunk/scipy/stats/tests/test_discrete_chisquare.py	2008-11-25 05:07:33 UTC (rev 5191)
+++ trunk/scipy/stats/tests/test_discrete_chisquare.py	2008-11-25 13:40:11 UTC (rev 5192)
@@ -78,6 +78,7 @@
     assert (pval > alpha), 'chisquare - test for %s' \
            'at arg = %s with pval = %s' % (distname,str(arg),str(pval))
 
+@dec.slow
 def test_discrete_rvs_cdf():
     distdiscrete = [
         ['bernoulli',(0.3,)],



More information about the Scipy-svn mailing list