From e41d0efd9d9215259758eb5246d4cf86b33c039c Mon Sep 17 00:00:00 2001 From: Michael Osthege Date: Tue, 3 Aug 2021 22:13:31 +0200 Subject: [PATCH] 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. --- pymc3/tests/test_ode.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/pymc3/tests/test_ode.py b/pymc3/tests/test_ode.py index 09be4f6d23..3ce7ed473a 100644 --- a/pymc3/tests/test_ode.py +++ b/pymc3/tests/test_ode.py @@ -173,7 +173,7 @@ def ode_func_5(y, t, p): np.testing.assert_array_equal(np.ravel(model5_sens_ic), model5._sens_ic) -@pytest.mark.xfail(reason="https://github.com/pymc-devs/aesara/issues/390") +@pytest.mark.xfail(condition=IS_WINDOWS, reason="https://github.com/pymc-devs/aesara/issues/390") def test_logp_scalar_ode(): """Test the computation of the log probability for these models""" @@ -270,7 +270,9 @@ def ode_func(y, t, p): assert op_1 != op_other return - @pytest.mark.xfail(reason="https://github.com/pymc-devs/aesara/issues/390") + @pytest.mark.xfail( + condition=IS_WINDOWS, reason="https://github.com/pymc-devs/aesara/issues/390" + ) def test_scalar_ode_1_param(self): """Test running model for a scalar ODE with 1 parameter""" @@ -299,7 +301,9 @@ def system(y, t, p): assert idata.posterior["y0"].shape == (1, 100) assert idata.posterior["sigma"].shape == (1, 100) - @pytest.mark.xfail(reason="https://github.com/pymc-devs/aesara/issues/390") + @pytest.mark.xfail( + condition=IS_WINDOWS, reason="https://github.com/pymc-devs/aesara/issues/390" + ) def test_scalar_ode_2_param(self): """Test running model for a scalar ODE with 2 parameters"""