Skip to content

Commit 255a0c8

Browse files
michaelosthegericardoV94
authored andcommitted
Fix flaky test_skewstudentt_logp
1 parent 3a884dd commit 255a0c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/distributions/test_continuous.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,10 +550,12 @@ def test_studentt_logp(self):
550550
)
551551

552552
def test_skewstudentt_logp(self):
553+
# NOTE: Test with less extreme positive numbers
554+
rplusnonzero = Domain([0, 0.01, 0.5, 2, 15, 69, np.inf])
553555
check_logp(
554556
pm.SkewStudentT,
555557
R,
556-
{"a": Rplus, "b": Rplus, "mu": R, "sigma": Rplus},
558+
{"a": rplusnonzero, "b": rplusnonzero, "mu": R, "sigma": rplusnonzero},
557559
lambda value, a, b, mu, sigma: st.jf_skew_t.logpdf(value, a, b, mu, sigma),
558560
)
559561

0 commit comments

Comments
 (0)