Fix numpy_cupy_equal for case that both numpy cupy raise errors
@@ -661,6 +661,12 @@ def numpy_cupy_equal(name='xp', sp_name=None, scipy_name=None):
_call_func_numpy_cupy(
self, impl, args, kw, name, sp_name, scipy_name))
+ if cupy_error or numpy_error:
+ _check_cupy_numpy_error(
+ self, cupy_error, cupy_tb, numpy_error, numpy_tb,
+ accept_error=False)
+ return
+
if cupy_result != numpy_result:
message = '''Results are not equal:
cupy: %s
