diagonal tests using k argument require scipy>=1.0
@@ -261,6 +261,7 @@ class TestDiaMatrixScipyComparison(unittest.TestCase):
return m.transpose()
@testing.numpy_cupy_raises(sp_name='sp')
+ @testing.with_requires('scipy>=1.0')
def test_diagonal_error(self, xp, sp):
m = _make(xp, sp, self.dtype)
m.diagonal(k=10) # out of range
