Skip to content

Commit dddc4c3

Browse files
committed
Show arguments when check_logcdf fails
1 parent d43bb54 commit dddc4c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pymc3/tests/test_distributions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,11 +682,12 @@ def check_logcdf(
682682
scipy_cdf = scipy_logcdf(**params)
683683
value = params.pop("value")
684684
dist = pymc3_dist.dist(**params)
685+
params["value"] = value # for displaying in err_msg
685686
assert_almost_equal(
686687
dist.logcdf(value).tag.test_value,
687688
scipy_cdf,
688689
decimal=decimal,
689-
err_msg=str(pt),
690+
err_msg=str(params),
690691
)
691692

692693
valid_value = domain.vals[0]

0 commit comments

Comments
 (0)