test array2string with
@@ -19,7 +19,7 @@ class TestFormatting(unittest.TestCase):
b = testing.shaped_arange((2, 3, 4), numpy)
assert cupy.array_str(a) == numpy.array_str(b)
+ @testing.numpy_cupy_array_equal()
def test_array2string(self):
a = testing.shaped_arange((2, 3, 4), cupy)
- b = testing.shaped_arange((2, 3, 4), numpy)
- assert cupy.array2string(a) == numpy.array2string(b)
+ return cupy.array2string(a)
