flake8 and narrow error type
@@ -91,7 +91,9 @@ class TestMatmulOut(unittest.TestCase):
@testing.for_all_dtypes(name='dtype1')
@testing.for_all_dtypes(name='dtype2')
- @testing.numpy_cupy_allclose(rtol=1e-3, atol=1e-3, accept_error=True) # required for uint8
+ @testing.numpy_cupy_allclose(
+ rtol=1e-3, atol=1e-3, # required for uint8
+ accept_error=TypeError)
def test_cupy_matmul(self, xp, dtype1, dtype2):
x1 = testing.shaped_arange(self.shape_pair[0], xp, dtype1)
x2 = testing.shaped_arange(self.shape_pair[1], xp, dtype2)
