"xfail" gmres
import cupy
import unittest
+import warnings
import numpy
import pytest
@@ -412,6 +413,15 @@ class TestGmres:
density = 0.2
_atol = {'f': 1e-5, 'd': 1e-12}
+ # TODO(kataoka): Fix the `lstsq` call in CuPy's `gmres`
+ @pytest.fixture(autouse=True)
+ def ignore_futurewarning(self):
+ with warnings.catch_warnings():
+ warnings.filterwarnings(
+ 'ignore', '`rcond` parameter will change', FutureWarning,
+ )
+ yield
+
def _make_matrix(self, dtype, xp):
dtype = numpy.dtype(dtype)
shape = (self.n, self.n)
