@@ -1056,7 +1056,7 @@ def test_chisquared_logp(self):
1056
1056
lambda value , nu : sp .chi2 .logpdf (value , df = nu ),
1057
1057
)
1058
1058
1059
- @pytest .mark .xfail (
1059
+ @pytest .mark .skipif (
1060
1060
condition = (aesara .config .floatX == "float32" ),
1061
1061
reason = "Fails on float32 due to numerical issues" ,
1062
1062
)
@@ -1423,7 +1423,7 @@ def test_fun(value, mu, sigma):
1423
1423
test_fun ,
1424
1424
)
1425
1425
1426
- @pytest .mark .xfail (
1426
+ @pytest .mark .skipif (
1427
1427
condition = (aesara .config .floatX == "float32" ),
1428
1428
reason = "Fails on float32 due to numerical issues" ,
1429
1429
)
@@ -1449,7 +1449,7 @@ def test_inverse_gamma_logp(self):
1449
1449
# pymc-devs/aesara#224: skip_paramdomain_outside_edge_test has to be set
1450
1450
# True to avoid triggering a C-level assertion in the Aesara GammaQ function
1451
1451
1452
- @pytest .mark .xfail (
1452
+ @pytest .mark .skipif (
1453
1453
condition = (aesara .config .floatX == "float32" ),
1454
1454
reason = "Fails on float32 due to numerical issues" ,
1455
1455
)
@@ -1465,7 +1465,7 @@ def test_inverse_gamma_logcdf(self):
1465
1465
skip_paramdomain_outside_edge_test = True ,
1466
1466
)
1467
1467
1468
- @pytest .mark .xfail (
1468
+ @pytest .mark .skipif (
1469
1469
condition = (aesara .config .floatX == "float32" ),
1470
1470
reason = "Fails on float32 due to scaling issues" ,
1471
1471
)
@@ -1496,7 +1496,7 @@ def test_pareto(self):
1496
1496
lambda value , alpha , m : sp .pareto .logcdf (value , alpha , scale = m ),
1497
1497
)
1498
1498
1499
- @pytest .mark .xfail (
1499
+ @pytest .mark .skipif (
1500
1500
condition = (aesara .config .floatX == "float32" ),
1501
1501
reason = "Fails on float32 due to numerical issues" ,
1502
1502
)
@@ -1508,7 +1508,7 @@ def test_weibull_logp(self):
1508
1508
lambda value , alpha , beta : sp .exponweib .logpdf (value , 1 , alpha , scale = beta ),
1509
1509
)
1510
1510
1511
- @pytest .mark .xfail (
1511
+ @pytest .mark .skipif (
1512
1512
condition = (aesara .config .floatX == "float32" ),
1513
1513
reason = "Fails on float32 due to inf issues" ,
1514
1514
)
@@ -1560,7 +1560,7 @@ def test_binomial(self):
1560
1560
)
1561
1561
1562
1562
@pytest .mark .xfail (reason = "checkd tests has not been refactored" )
1563
- @pytest .mark .xfail (condition = (aesara .config .floatX == "float32" ), reason = "Fails on float32" )
1563
+ @pytest .mark .skipif (condition = (aesara .config .floatX == "float32" ), reason = "Fails on float32" )
1564
1564
def test_beta_binomial_distribution (self ):
1565
1565
self .checkd (
1566
1566
BetaBinomial ,
@@ -1681,7 +1681,7 @@ def test_constantdist(self):
1681
1681
self .check_logp (Constant , I , {"c" : I }, lambda value , c : np .log (c == value ))
1682
1682
1683
1683
@pytest .mark .xfail (reason = "Test has not been refactored" )
1684
- @pytest .mark .xfail (
1684
+ @pytest .mark .skipif (
1685
1685
condition = (aesara .config .floatX == "float32" ),
1686
1686
reason = "Fails on float32 due to inf issues" ,
1687
1687
)
@@ -1723,7 +1723,7 @@ def logcdf_fn(value, psi, theta):
1723
1723
)
1724
1724
1725
1725
@pytest .mark .xfail (reason = "Test not refactored yet" )
1726
- @pytest .mark .xfail (
1726
+ @pytest .mark .skipif (
1727
1727
condition = (aesara .config .floatX == "float32" ),
1728
1728
reason = "Fails on float32 due to inf issues" ,
1729
1729
)
@@ -1860,7 +1860,7 @@ def test_mvnormal(self, n):
1860
1860
extra_args = {"lower" : False },
1861
1861
)
1862
1862
1863
- @pytest .mark .xfail (
1863
+ @pytest .mark .skipif (
1864
1864
condition = (aesara .config .floatX == "float32" ),
1865
1865
reason = "Fails on float32 due to inf issues" ,
1866
1866
)
@@ -2521,7 +2521,7 @@ def test_ex_gaussian_cdf_outside_edges(self):
2521
2521
skip_paramdomain_inside_edge_test = True , # Valid values are tested above
2522
2522
)
2523
2523
2524
- @pytest .mark .xfail (condition = (aesara .config .floatX == "float32" ), reason = "Fails on float32" )
2524
+ @pytest .mark .skipif (condition = (aesara .config .floatX == "float32" ), reason = "Fails on float32" )
2525
2525
def test_vonmises (self ):
2526
2526
self .check_logp (
2527
2527
VonMises ,
@@ -2571,7 +2571,7 @@ def test_logitnormal(self):
2571
2571
decimal = select_by_precision (float64 = 6 , float32 = 1 ),
2572
2572
)
2573
2573
2574
- @pytest .mark .xfail (
2574
+ @pytest .mark .skipif (
2575
2575
condition = (aesara .config .floatX == "float32" ),
2576
2576
reason = "Some combinations underflow to -inf in float32 in pymc version" ,
2577
2577
)
@@ -2603,7 +2603,7 @@ def test_moyal_logp(self):
2603
2603
lambda value , mu , sigma : floatX (sp .moyal .logpdf (value , mu , sigma )),
2604
2604
)
2605
2605
2606
- @pytest .mark .xfail (
2606
+ @pytest .mark .skipif (
2607
2607
condition = (aesara .config .floatX == "float32" ),
2608
2608
reason = "Pymc3 underflows earlier than scipy on float32" ,
2609
2609
)
@@ -2617,7 +2617,7 @@ def test_moyal_logcdf(self):
2617
2617
if aesara .config .floatX == "float32" :
2618
2618
raise Exception ("Flaky test: It passed this time, but XPASS is not allowed." )
2619
2619
2620
- @pytest .mark .xfail (condition = (aesara .config .floatX == "float32" ), reason = "Fails on float32" )
2620
+ @pytest .mark .skipif (condition = (aesara .config .floatX == "float32" ), reason = "Fails on float32" )
2621
2621
def test_interpolated (self ):
2622
2622
for mu in R .vals :
2623
2623
for sigma in Rplus .vals :
0 commit comments