Skip to content

Commit 6ceebdf

Browse files
Adjust flaky last-digit numerical requirements in TestMatchesScipy
1 parent 8499a7d commit 6ceebdf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pymc3/tests/test_distributions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,7 @@ def test_normal(self):
970970
R,
971971
{"mu": R, "sigma": Rplus},
972972
lambda value, mu, sigma: sp.norm.logcdf(value, mu, sigma),
973+
decimal=select_by_precision(float64=6, float32=1),
973974
)
974975

975976
@pytest.mark.xfail(reason="Distribution not refactored yet")
@@ -1075,6 +1076,7 @@ def test_beta(self):
10751076
{"alpha": Rplus, "beta": Rplus},
10761077
lambda value, alpha, beta: sp.beta.logcdf(value, alpha, beta),
10771078
n_samples=10,
1079+
decimal=select_by_precision(float64=5, float32=3),
10781080
)
10791081

10801082
@pytest.mark.xfail(reason="Distribution not refactored yet")

0 commit comments

Comments
 (0)