Skip to content

Commit a115eec

Browse files
Remove Dirichlet positive concentration parameter constructor tests
This test can't be performed in the constructor if we're allowing Theano-type distribution parameters.
1 parent 6f5d0a6 commit a115eec

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

pymc3/tests/test_distributions.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,18 +1328,6 @@ def test_dirichlet(self, n):
13281328
Dirichlet, Simplex(n), {"a": Vector(Rplus, n)}, dirichlet_logpdf
13291329
)
13301330

1331-
@pytest.mark.parametrize("n", [3, 4])
1332-
def test_dirichlet_init_fail(self, n):
1333-
with Model():
1334-
with pytest.raises(
1335-
ValueError, match=r"All concentration parameters \(a\) must be > 0."
1336-
):
1337-
_ = Dirichlet("x", a=np.zeros(n), shape=n)
1338-
with pytest.raises(
1339-
ValueError, match=r"All concentration parameters \(a\) must be > 0."
1340-
):
1341-
_ = Dirichlet("x", a=np.array([-1.0] * n), shape=n)
1342-
13431331
def test_dirichlet_2D(self):
13441332
self.pymc3_matches_scipy(
13451333
Dirichlet,

0 commit comments

Comments
 (0)