Skip to content

Commit 3a8892a

Browse files
Repair change_flags reference and remove pytest.mark.run decorators
We do not have pytest-ordering in the dependencies and tests should be unordered anyway.
1 parent ca755f3 commit 3a8892a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: pymc3/tests/test_variational_inference.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def test_elbo():
505505

506506
# Create variational gradient tensor
507507
mean_field = MeanField(model=model)
508-
with pm.theanof.change_flags(compute_test_value="off"):
508+
with theano.config.change_flags(compute_test_value="off"):
509509
elbo = -pm.operators.KL(mean_field)()(10000)
510510

511511
mean_field.shared_params["mu"].set_value(post_mu)
@@ -732,7 +732,6 @@ def fit_kwargs(inference, use_minibatch):
732732
return _select[(type(inference), key)]
733733

734734

735-
@pytest.mark.run("first")
736735
def test_fit_oo(inference, fit_kwargs, simple_model_data):
737736
trace = inference.fit(**fit_kwargs).sample(10000)
738737
mu_post = simple_model_data["mu_post"]
@@ -911,7 +910,6 @@ def binomial_model_inference(binomial_model, inference_spec):
911910
return inference_spec()
912911

913912

914-
@pytest.mark.run(after="test_sample_replacements")
915913
def test_replacements(binomial_model_inference):
916914
d = tt.bscalar()
917915
d.tag.test_value = 1

0 commit comments

Comments
 (0)