Skip to content

Commit

Permalink
Merge pull request cupy#8641 from EarlMilktea/allow-overflow
Browse files Browse the repository at this point in the history
Accept `OverflowError` in `TestCopytoFromScalar` for NumPy v2
  • Loading branch information
asi1024 authored and chainer-ci committed Oct 2, 2024
1 parent 358cbdc commit 7ad3330
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cupy_tests/manipulation_tests/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,14 +191,14 @@ def test_copyto_multigpu_noncontinguous(self, dtype):
class TestCopytoFromScalar:

@testing.for_all_dtypes()
@testing.numpy_cupy_allclose(accept_error=TypeError)
@testing.numpy_cupy_allclose(accept_error=(TypeError, OverflowError))
def test_copyto(self, xp, dtype):
dst = xp.ones(self.dst_shape, dtype=dtype)
xp.copyto(dst, self.src)
return dst

@testing.for_all_dtypes()
@testing.numpy_cupy_allclose(accept_error=TypeError)
@testing.numpy_cupy_allclose(accept_error=(TypeError, OverflowError))
def test_copyto_where(self, xp, dtype):
dst = xp.ones(self.dst_shape, dtype=dtype)
mask = (testing.shaped_arange(
Expand Down

0 comments on commit 7ad3330

Please sign in to comment.