Skip to content

Commit

Permalink
Merge pull request #2712 from grlee77/avoid_scipy_segfault
Browse files Browse the repository at this point in the history
Skip tests that segfault when using SciPy 1.3.x
  • Loading branch information
niboshi committed Nov 27, 2019
2 parents b195771 + 1760cda commit 86c58ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/cupyx_tests/scipy_tests/sparse_tests/test_csc.py
Expand Up @@ -1008,6 +1008,8 @@ def test_getitem_slice(self, xp, sp):
def test_getitem_slice_negative(self, xp, sp):
return _make(xp, sp, self.dtype)[:, -2:-1]

# avoid segfault: https://github.com/scipy/scipy/issues/11125
@testing.with_requires('scipy!=1.3.*')
@testing.numpy_cupy_raises(sp_name='sp', accept_error=IndexError)
def test_getitem_slice_start_larger_than_stop(self, xp, sp):
_make(xp, sp, self.dtype)[:, 3:2]
Expand Down
2 changes: 2 additions & 0 deletions tests/cupyx_tests/scipy_tests/sparse_tests/test_csr.py
Expand Up @@ -1118,6 +1118,8 @@ def test_getitem_slice(self, xp, sp):
def test_getitem_slice_negative(self, xp, sp):
return _make(xp, sp, self.dtype)[-2:-1]

# avoid segfault: https://github.com/scipy/scipy/issues/11125
@testing.with_requires('scipy!=1.3.*')
@testing.numpy_cupy_raises(sp_name='sp', accept_error=IndexError)
def test_getitem_slice_start_larger_than_stop(self, xp, sp):
_make(xp, sp, self.dtype)[3:2]
Expand Down

0 comments on commit 86c58ca

Please sign in to comment.