Skip to content

Commit

Permalink
Update cuDF's assert_eq import (#1050)
Browse files Browse the repository at this point in the history
rapidsai/cudf#16063 has updated the import location of `assert_eq` to the public `cudf.testing.assert_eq`, this change updates imports accordingly.

Authors:
  - Peter Andreas Entschev (https://github.com/pentschev)

Approvers:
  - Mads R. B. Kristensen (https://github.com/madsbk)

URL: #1050
  • Loading branch information
pentschev authored Jun 26, 2024
1 parent 42c03ef commit 7b70211
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion debug-tests/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async def read():
# cuda_obj_generator = cloudpickle.loads(func)
# pure_cuda_obj = cuda_obj_generator()

# from cudf.testing._utils import assert_eq
# from cudf.testing import assert_eq
# import cupy as cp

# if isinstance(rx_cuda_obj, cp.ndarray):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_custom_send_recv.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ async def serve_forever(ep):
typ = type(msg)
res = typ.deserialize(ucx_header, cudf_buffer)

from cudf.testing._utils import assert_eq
from cudf.testing import assert_eq

assert_eq(res, msg)
await uu.comm.ep.close()
Expand Down
2 changes: 1 addition & 1 deletion tests/test_send_recv_two_workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async def read():
if isinstance(rx_cuda_obj, cupy.ndarray):
cupy.testing.assert_allclose(rx_cuda_obj, pure_cuda_obj)
else:
from cudf.testing._utils import assert_eq
from cudf.testing import assert_eq

assert_eq(rx_cuda_obj, pure_cuda_obj)

Expand Down

0 comments on commit 7b70211

Please sign in to comment.