Skip to content

Commit 19b9979

Browse files
committed
Fix test import style in test_censoring.py
Move 'import pymc as pm' to top of file with other imports instead of inside the test function.
1 parent 063af42 commit 19b9979

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/logprob/test_censoring.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
import scipy as sp
4242
import scipy.stats as st
4343

44+
import pymc as pm
45+
4446
from pymc import logp
4547
from pymc.logprob import conditional_logp
4648
from pymc.logprob.transform_value import TransformValuesRewrite
@@ -281,8 +283,6 @@ def test_censored_logprob_numerical_stability(censoring_side, bound_value):
281283
282284
This test uses pm.Censored which is the high-level API for censored distributions.
283285
"""
284-
import pymc as pm
285-
286286
ref_scipy = st.norm(0, 1)
287287

288288
with pm.Model() as model:

0 commit comments

Comments
 (0)