Skip to content

Commit

Permalink
Condition issue #4652 xfail on platform
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelosthege authored and twiecki committed May 14, 2021
1 parent 8c1c0ff commit 47fd9b8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
6 changes: 5 additions & 1 deletion pymc3/tests/test_ode.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import sys

import aesara
import numpy as np
import pytest
Expand Down Expand Up @@ -168,7 +170,9 @@ def ode_func_5(y, t, p):
np.testing.assert_array_equal(np.ravel(model5_sens_ic), model5._sens_ic)


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

Expand Down
7 changes: 6 additions & 1 deletion pymc3/tests/test_shape_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import sys

import aesara
import numpy as np
import pytest
Expand Down Expand Up @@ -333,7 +335,10 @@ def test_can_resize_data_defined_size(self):
assert y.eval().shape == (3, 2)
assert z.eval().shape == (3, 2)

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

0 comments on commit 47fd9b8

Please sign in to comment.