Skip to content

Commit

Permalink
Removed redundant out of bounds parameter tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
gokuld committed Apr 1, 2023
1 parent 662edf0 commit d6a89d5
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/distributions/test_continuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,15 +443,6 @@ def test_exponential(self):
{"lam": Rplus},
lambda q, lam: st.expon.ppf(q, loc=0, scale=1 / lam),
)
# Custom logp / logcdf / icdf check for invalid parameters
invalid_dist = pm.Exponential.dist(lam=-1)
with pytensor.config.change_flags(mode=Mode("py")):
with pytest.raises(ParameterValueError):
logp(invalid_dist, np.array(0.5)).eval()
with pytest.raises(ParameterValueError):
logcdf(invalid_dist, np.array(0.5)).eval()
with pytest.raises(ParameterValueError):
icdf(invalid_dist, np.array(0.5)).eval()

def test_laplace(self):
check_logp(
Expand Down

0 comments on commit d6a89d5

Please sign in to comment.