Skip to content

Commit af75d8b

Browse files
committed
remove module scope from fixtures
1 parent 6b946ec commit af75d8b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
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

0 commit comments

Comments
 (0)