Skip to content

Commit 8af44f2

Browse files
committed
Add test for when boundaries are disabled.
1 parent 62db6d1 commit 8af44f2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pymc3/tests/test_dist_math.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ def test_bound():
6060
assert np.prod(bound(logp, cond).eval()) == -np.inf
6161

6262

63+
def test_bound_disabled():
64+
with pm.Model(disable_bounds_check=True):
65+
logp = tt.ones(3)
66+
cond = np.array([1, 0, 1])
67+
assert np.all(bound(logp, cond).eval() == logp.eval())
68+
69+
6370
def test_alltrue_scalar():
6471
assert alltrue_scalar([]).eval()
6572
assert alltrue_scalar([True]).eval()

0 commit comments

Comments
 (0)