Skip to content

Commit 2ab60b3

Browse files
committed
Skip failing sparse tests on scipy 1.16
1 parent 13e52d8 commit 2ab60b3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/sparse/test_basic.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,6 +1159,10 @@ def test_csm_grad(self):
11591159
structured=True,
11601160
)
11611161

1162+
@pytest.mark.skipif(
1163+
version.parse(sp.__version__) >= version.parse("1.16.0"),
1164+
reason="Scipy 1.16 introduced some changes that make this test fail",
1165+
)
11621166
def test_csm_sparser(self):
11631167
# Test support for gradients sparser than the input.
11641168

@@ -1191,6 +1195,10 @@ def test_csm_sparser(self):
11911195

11921196
assert len(spmat.data) == len(res)
11931197

1198+
@pytest.mark.skipif(
1199+
version.parse(sp.__version__) >= version.parse("1.16.0"),
1200+
reason="Scipy 1.16 introduced some changes that make this test fail",
1201+
)
11941202
def test_csm_unsorted(self):
11951203
# Test support for gradients of unsorted inputs.
11961204

0 commit comments

Comments
 (0)