Skip to content

Commit 2e413cf

Browse files
committed
Simplified test case
1 parent f4bd7d4 commit 2e413cf

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

tests/distributions/test_continuous.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -445,17 +445,13 @@ def test_exponential(self):
445445
)
446446

447447
def test_exponential_wrong_arguments(self):
448-
m = pm.Model()
449-
450448
msg = "Incompatible parametrization. Can't specify both lam and scale"
451-
with m:
452-
with pytest.raises(ValueError, match=msg):
453-
pm.Exponential("x", lam=0.5, scale=5)
449+
with pytest.raises(ValueError, match=msg):
450+
pm.Exponential.dist(lam=0.5, scale=5)
454451

455452
msg = "Incompatible parametrization. Must specify either lam or scale"
456-
with m:
457-
with pytest.raises(ValueError, match=msg):
458-
pm.Exponential("x")
453+
with pytest.raises(ValueError, match=msg):
454+
pm.Exponential.dist()
459455

460456
def test_laplace(self):
461457
check_logp(

0 commit comments

Comments
 (0)