Skip to content

Commit 4965292

Browse files
committed
Skip test_polyagamma_moment if library is not installed
1 parent cf6d4ce commit 4965292

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/distributions/test_continuous.py

+4
Original file line numberDiff line numberDiff line change
@@ -1503,6 +1503,10 @@ def test_rice_moment(self, nu, sigma, size, expected):
15031503
with pm.Model() as model:
15041504
pm.Rice("x", nu=nu, sigma=sigma, size=size)
15051505

1506+
@pytest.mark.skipif(
1507+
condition=_polyagamma_not_installed,
1508+
reason="`polyagamma package is not available/installed.",
1509+
)
15061510
@pytest.mark.parametrize(
15071511
"h, z, size, expected",
15081512
[

0 commit comments

Comments
 (0)