Skip to content

Commit

Permalink
Simiplify buffer equality check
Browse files Browse the repository at this point in the history
  • Loading branch information
anjakefala committed Sep 6, 2024
1 parent 129b2f7 commit a64d54d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/pyarrow/tests/test_cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,8 +132,7 @@ def test_copy_from_buffer():
assert not cudabuf2.is_cpu
assert cudabuf2.device_type == pa.DeviceAllocationType.CUDA

arr2 = np.frombuffer(cudabuf2.copy_to_host(), dtype=np.uint8)
np.testing.assert_equal(arr, arr2)
assert cudabuf2.copy_to_host().equals(buf)

assert cudabuf2.device == mm2.device

Expand Down

0 comments on commit a64d54d

Please sign in to comment.