Add skip and explanation on argmax/min csc tests
@@ -1261,11 +1261,19 @@ class TestCscMatrixScipyCompressedMinMax:
@testing.numpy_cupy_array_equal(sp_name='sp')
def test_argmin(self, xp, sp):
data = self._make_data_min(xp, sp, dense=self.dense)
+ # Due to a SciPy bug, the argmin output is different from the expected
+ # one
+ if self.axis is None and self.dense:
+ pytest.skip()
return xp.array(data.argmin(axis=self.axis))
@testing.numpy_cupy_array_equal(sp_name='sp')
def test_argmax(self, xp, sp):
data = self._make_data_max(xp, sp, dense=self.dense)
+ # Due to a SciPy bug, the argmin output is different from the expected
+ # one
+ if self.axis is None and self.dense:
+ pytest.skip()
return xp.array(data.argmax(axis=self.axis))
