Skip to content

Commit 064af80

Browse files
Don't use action keyword in catch_warnings
1 parent b7304f6 commit 064af80

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pymc_experimental/tests/statespace/test_statespace_JAX.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ def exog_pymc_mod(exog_ss_mod, rng):
7070

7171
@pytest.fixture(scope="session")
7272
def idata(pymc_mod, rng):
73-
with warnings.catch_warnings(action="ignore"):
73+
with warnings.catch_warnings():
74+
warnings.simplefilter("ignore")
7475
with pymc_mod:
7576
idata = pm.sample(
7677
draws=10,
@@ -91,7 +92,9 @@ def idata(pymc_mod, rng):
9192

9293
@pytest.fixture(scope="session")
9394
def idata_exog(exog_pymc_mod, rng):
94-
with warnings.catch_warnings(action="ignore"):
95+
with warnings.catch_warnings():
96+
warnings.simplefilter("ignore")
97+
9598
with exog_pymc_mod:
9699
idata = pm.sample(
97100
draws=10,

0 commit comments

Comments
 (0)