Skip to content

Commit cef8bba

Browse files
committed
TST: stats.fit: adjust slow tests
1 parent a53878e commit cef8bba

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

scipy/stats/tests/test_fit.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -236,27 +236,27 @@ def cases_test_fit_mle():
236236
'poisson_binom'} # vector-valued shape parameter
237237

238238
# Please keep this list in alphabetical order...
239-
slow_basic_fit = {'alpha', 'betaprime', 'binom', 'bradford', 'burr12',
239+
slow_basic_fit = {'alpha', 'arcsine', 'betaprime', 'binom', 'bradford', 'burr12',
240240
'chi', 'crystalball', 'dweibull', 'erlang', 'exponnorm',
241241
'exponpow', 'f', 'fatiguelife', 'fisk', 'foldcauchy', 'gamma',
242242
'genexpon', 'genextreme', 'gennorm', 'genpareto',
243243
'gompertz', 'halfgennorm', 'invgamma', 'invgauss', 'invweibull',
244244
'jf_skew_t', 'johnsonsb', 'johnsonsu', 'kappa3',
245245
'kstwobign', 'loglaplace', 'lognorm', 'lomax', 'mielke',
246-
'nakagami', 'nbinom', 'norminvgauss',
246+
'nbinom', 'norminvgauss',
247247
'pareto', 'pearson3', 'powerlaw', 'powernorm',
248248
'randint', 'rdist', 'recipinvgauss', 'rice', 'skewnorm',
249249
't', 'uniform', 'weibull_max', 'weibull_min', 'wrapcauchy'}
250250

251251
# Please keep this list in alphabetical order...
252-
xslow_basic_fit = {'beta', 'betabinom', 'betanbinom', 'burr', 'exponweib',
252+
xslow_basic_fit = {'betabinom', 'betanbinom', 'burr', 'exponweib',
253253
'gausshyper', 'gengamma', 'genhalflogistic',
254254
'genhyperbolic', 'geninvgauss',
255255
'hypergeom', 'kappa4', 'loguniform',
256256
'ncf', 'nchypergeom_fisher', 'nchypergeom_wallenius',
257257
'nct', 'ncx2', 'nhypergeom',
258258
'powerlognorm', 'reciprocal', 'rel_breitwigner',
259-
'skellam', 'trapezoid', 'triang', 'truncnorm',
259+
'skellam', 'trapezoid', 'triang',
260260
'tukeylambda', 'vonmises', 'zipfian'}
261261

262262
for dist in dict(distdiscrete + distcont):
@@ -288,7 +288,7 @@ def cases_test_fit_mse():
288288
}
289289

290290
# Please keep this list in alphabetical order...
291-
slow_basic_fit = {'alpha', 'anglit', 'arcsine', 'betabinom', 'bradford',
291+
slow_basic_fit = {'alpha', 'anglit', 'betabinom', 'bradford',
292292
'chi', 'chi2', 'crystalball', 'dweibull',
293293
'erlang', 'exponnorm', 'exponpow', 'exponweib',
294294
'fatiguelife', 'fisk', 'foldcauchy', 'foldnorm',
@@ -312,7 +312,7 @@ def cases_test_fit_mse():
312312
'johnsonsb', 'kappa4', 'loguniform', 'mielke',
313313
'nakagami', 'ncf', 'nchypergeom_fisher',
314314
'nchypergeom_wallenius', 'nct', 'ncx2',
315-
'pearson3', 'powerlaw', 'powerlognorm',
315+
'pearson3', 'powerlognorm',
316316
'rdist', 'reciprocal', 'rel_breitwigner', 'rice',
317317
'trapezoid', 'truncnorm', 'truncweibull_min',
318318
'vonmises_line', 'zipfian'}
@@ -537,6 +537,7 @@ def test_basic_fit_mle(self, dist_name):
537537
def test_basic_fit_mse(self, dist_name):
538538
self.basic_fit_test(dist_name, "mse", rng=2)
539539

540+
@pytest.mark.slow
540541
def test_arcsine(self):
541542
# Can't guarantee that all distributions will fit all data with
542543
# arbitrary bounds. This distribution just happens to fail above.
@@ -567,6 +568,7 @@ def test_argus(self, method):
567568
assert_nlff_less_or_close(dist, data, res.params, shapes, **self.tols,
568569
nlff_name=nlff_name)
569570

571+
@pytest.mark.xslow
570572
def test_beta(self):
571573
# Can't guarantee that all distributions will fit all data with
572574
# arbitrary bounds. This distribution just happens to fail above.
@@ -610,6 +612,7 @@ def test_nakagami(self):
610612
assert_nlff_less_or_close(dist, data, res.params, shapes,
611613
nlff_name='nnlf', **self.tols)
612614

615+
@pytest.mark.slow
613616
def test_powerlaw(self):
614617
# Can't guarantee that all distributions will fit all data with
615618
# arbitrary bounds. This distribution just happens to fail above.
@@ -638,7 +641,7 @@ def test_truncpareto(self):
638641

639642
assert_nlff_less_or_close(dist, data, res.params, shapes, **self.tols)
640643

641-
@pytest.mark.fail_slow(5)
644+
@pytest.mark.slow
642645
def test_truncweibull_min(self):
643646
# Can't guarantee that all distributions will fit all data with
644647
# arbitrary bounds. This distribution just happens to fail above.

0 commit comments

Comments
 (0)