We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4bd7d4 commit 2e413cfCopy full SHA for 2e413cf
tests/distributions/test_continuous.py
@@ -445,17 +445,13 @@ def test_exponential(self):
445
)
446
447
def test_exponential_wrong_arguments(self):
448
- m = pm.Model()
449
-
450
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)
+ with pytest.raises(ValueError, match=msg):
+ pm.Exponential.dist(lam=0.5, scale=5)
454
455
msg = "Incompatible parametrization. Must specify either lam or scale"
456
457
458
- pm.Exponential("x")
+ pm.Exponential.dist()
459
460
def test_laplace(self):
461
check_logp(
0 commit comments