From 2cab12535148e6834724432f9aae12e4be44590b Mon Sep 17 00:00:00 2001 From: ricardoV94 Date: Tue, 8 Oct 2024 12:17:22 +0200 Subject: [PATCH] Make xfail strict --- pyproject.toml | 1 + tests/link/jax/test_einsum.py | 1 - tests/tensor/rewriting/test_elemwise.py | 1 - 3 files changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 95198d656e..42c2289dde 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -119,6 +119,7 @@ tag_prefix = "rel-" [tool.pytest.ini_options] addopts = "--durations=50 --doctest-modules --ignore=pytensor/link --ignore=pytensor/misc/check_duplicate_key.py" testpaths = ["pytensor/", "tests/"] +xfail_strict = true [tool.ruff] line-length = 88 diff --git a/tests/link/jax/test_einsum.py b/tests/link/jax/test_einsum.py index 3bd4abd7f1..5761563066 100644 --- a/tests/link/jax/test_einsum.py +++ b/tests/link/jax/test_einsum.py @@ -24,7 +24,6 @@ def test_jax_einsum(): compare_jax_and_py(fg, [x, y, z]) -@pytest.mark.xfail(raises=NotImplementedError) def test_ellipsis_einsum(): subscripts = "...i,...i->..." x = np.random.rand(2, 5) diff --git a/tests/tensor/rewriting/test_elemwise.py b/tests/tensor/rewriting/test_elemwise.py index 82cfa884af..fc429bb596 100644 --- a/tests/tensor/rewriting/test_elemwise.py +++ b/tests/tensor/rewriting/test_elemwise.py @@ -1057,7 +1057,6 @@ def test_big_fusion(self): for node in dlogp.maker.fgraph.toposort() ) - @pytest.mark.xfail(reason="Fails due to #1244") def test_add_mul_fusion_precedence(self): """Test that additions and multiplications are "fused together" before a `Composite` `Op` is introduced. This fusion is done by canonicalization