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 735278a commit c014fbaCopy full SHA for c014fba
pymc3/tests/test_distributions.py
@@ -745,7 +745,12 @@ def check_logcdf(
745
if invalid_edge is not None:
746
test_params = valid_params.copy() # Shallow copy should be okay
747
test_params[invalid_param] = invalid_edge
748
- invalid_dist = pymc3_dist.dist(**test_params)
+ # We need to remove `Assert`s introduced by checks like
749
+ # `assert_negative_support` and disable test values;
750
+ # otherwise, we won't be able to create the
751
+ # `RandomVariable`
752
+ with aesara.config.change_flags(compute_test_value="off"):
753
+ invalid_dist = pymc3_dist.dist(no_assert=True, **test_params)
754
with aesara.config.change_flags(mode=Mode("py")):
755
assert_equal(
756
logcdf(invalid_dist, valid_value).eval(),
0 commit comments