Skip to content

Commit 3f8ea24

Browse files
michaelosthegetwiecki
authored andcommitted
Condition issue #4652 xfail on platform
1 parent 1446732 commit 3f8ea24

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

pymc3/tests/test_ode.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15+
import sys
16+
1517
import aesara
1618
import numpy as np
1719
import pytest
@@ -168,7 +170,9 @@ def ode_func_5(y, t, p):
168170
np.testing.assert_array_equal(np.ravel(model5_sens_ic), model5._sens_ic)
169171

170172

171-
@pytest.mark.xfail(reason="See https://github.com/pymc-devs/pymc3/issues/4652.")
173+
@pytest.mark.xfail(
174+
condition=sys.platform == "win32", reason="See https://github.com/pymc-devs/pymc3/issues/4652."
175+
)
172176
def test_logp_scalar_ode():
173177
"""Test the computation of the log probability for these models"""
174178

pymc3/tests/test_shape_handling.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
import sys
15+
1416
import aesara
1517
import numpy as np
1618
import pytest
@@ -333,7 +335,10 @@ def test_can_resize_data_defined_size(self):
333335
assert y.eval().shape == (3, 2)
334336
assert z.eval().shape == (3, 2)
335337

336-
@pytest.mark.xfail(reason="See https://github.com/pymc-devs/pymc3/issues/4652.")
338+
@pytest.mark.xfail(
339+
condition=sys.platform == "win32",
340+
reason="See https://github.com/pymc-devs/pymc3/issues/4652.",
341+
)
337342
def test_observed_with_column_vector(self):
338343
with pm.Model() as model:
339344
pm.Normal("x1", mu=0, sd=1, observed=np.random.normal(size=(3, 4)))

0 commit comments

Comments
 (0)