Skip to content

Commit eced3ef

Browse files
Do not assume values are Applys in pymc3.tests.test_distributions
1 parent 3773f16 commit eced3ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymc3/tests/test_distributions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2740,6 +2740,6 @@ def test_hierarchical_logpt():
27402740
# Make sure that hierarchical random variables are replaced with their
27412741
# log-likelihood space variables in the log-likelhood
27422742
logpt_ancestors = list(ancestors([m.logpt]))
2743-
assert not any(isinstance(v.owner.op, RandomVariable) for v in logpt_ancestors if v.owner)
2743+
assert not any(isinstance(v, RandomVariable) for v in logpt_ancestors)
27442744
assert x.tag.value_var in logpt_ancestors
27452745
assert y.tag.value_var in logpt_ancestors

0 commit comments

Comments
 (0)