Skip to content

Commit 03a64aa

Browse files
authored
Merge pull request #3779 from pymc-devs/disable-broken-test
Fix broken VI test (pytest issue)
2 parents 636ef8a + af75d8b commit 03a64aa

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

pymc3/tests/test_shape_handling.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,22 @@
4141
test_to_shapes = [None, tuple(), (10, 5, 4), (10, 1, 1, 5, 1)]
4242

4343

44-
@pytest.fixture(scope="module", params=test_sizes, ids=str)
44+
@pytest.fixture(params=test_sizes, ids=str)
4545
def fixture_sizes(request):
4646
return request.param
4747

4848

49-
@pytest.fixture(scope="module", params=test_shapes, ids=str)
49+
@pytest.fixture(params=test_shapes, ids=str)
5050
def fixture_shapes(request):
5151
return request.param
5252

5353

54-
@pytest.fixture(scope="module", params=[False, True], ids=str)
54+
@pytest.fixture(params=[False, True], ids=str)
5555
def fixture_exception_handling(request):
5656
return request.param
5757

5858

59-
@pytest.fixture(scope="module")
59+
@pytest.fixture()
6060
def samples_to_broadcast(fixture_sizes, fixture_shapes):
6161
samples = [np.empty(s) for s in fixture_shapes]
6262
try:
@@ -68,7 +68,7 @@ def samples_to_broadcast(fixture_sizes, fixture_shapes):
6868
return fixture_sizes, samples, broadcast_shape
6969

7070

71-
@pytest.fixture(scope="module", params=test_to_shapes, ids=str)
71+
@pytest.fixture(params=test_to_shapes, ids=str)
7272
def samples_to_broadcast_to(request, samples_to_broadcast):
7373
to_shape = request.param
7474
size, samples, broadcast_shape = samples_to_broadcast
@@ -82,7 +82,7 @@ def samples_to_broadcast_to(request, samples_to_broadcast):
8282
return to_shape, size, samples, broadcast_shape
8383

8484

85-
@pytest.fixture(scope="module")
85+
@pytest.fixture
8686
def fixture_model():
8787
with pm.Model() as model:
8888
n = 5

pymc3/tests/test_variational_inference.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ def three_var_approx(three_var_model, three_var_groups):
151151
def three_var_approx_single_group_mf(three_var_model):
152152
return MeanField(model=three_var_model)
153153

154+
154155
@pytest.fixture(
155156
params = [
156157
('ndarray', None),
@@ -566,7 +567,7 @@ def use_minibatch(request):
566567
return request.param
567568

568569

569-
@pytest.fixture('module')
570+
@pytest.fixture
570571
def simple_model_data(use_minibatch):
571572
n = 1000
572573
sigma0 = 2.
@@ -590,7 +591,7 @@ def simple_model_data(use_minibatch):
590591
)
591592

592593

593-
@pytest.fixture(scope='module')
594+
@pytest.fixture
594595
def simple_model(simple_model_data):
595596
with pm.Model() as model:
596597
mu_ = pm.Normal(

0 commit comments

Comments
 (0)