Skip to content

Commit 1818943

Browse files
Condition xfails on Windows after bug fix affected linux only
A fix for Aesara issue 390 was rolled out with Aesara 2.1.3 but apparently it did not fix the problem on Windows.
1 parent e51b945 commit 1818943

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

pymc3/tests/test_ode.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def ode_func_5(y, t, p):
173173
np.testing.assert_array_equal(np.ravel(model5_sens_ic), model5._sens_ic)
174174

175175

176-
@pytest.mark.xfail(reason="https://github.com/pymc-devs/aesara/issues/390")
176+
@pytest.mark.xfail(condition=IS_WINDOWS, reason="https://github.com/pymc-devs/aesara/issues/390")
177177
def test_logp_scalar_ode():
178178
"""Test the computation of the log probability for these models"""
179179

@@ -270,7 +270,9 @@ def ode_func(y, t, p):
270270
assert op_1 != op_other
271271
return
272272

273-
@pytest.mark.xfail(reason="https://github.com/pymc-devs/aesara/issues/390")
273+
@pytest.mark.xfail(
274+
condition=IS_WINDOWS, reason="https://github.com/pymc-devs/aesara/issues/390"
275+
)
274276
def test_scalar_ode_1_param(self):
275277
"""Test running model for a scalar ODE with 1 parameter"""
276278

@@ -299,7 +301,9 @@ def system(y, t, p):
299301
assert idata.posterior["y0"].shape == (1, 100)
300302
assert idata.posterior["sigma"].shape == (1, 100)
301303

302-
@pytest.mark.xfail(reason="https://github.com/pymc-devs/aesara/issues/390")
304+
@pytest.mark.xfail(
305+
condition=IS_WINDOWS, reason="https://github.com/pymc-devs/aesara/issues/390"
306+
)
303307
def test_scalar_ode_2_param(self):
304308
"""Test running model for a scalar ODE with 2 parameters"""
305309

0 commit comments

Comments
 (0)