Skip to content

Commit

Permalink
Update cuDF's assert_eq import (#239)
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: #239
  • Loading branch information
pentschev authored Jun 26, 2024
1 parent 1e6d80c commit 4d85035
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ async def test_ping_pong_cudf(ucxx_loop, g):
# *** ImportError: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.11'
# not found (required by python3.7/site-packages/pyarrow/../../../libarrow.so.12)
cudf = pytest.importorskip("cudf")
from cudf.testing._utils import assert_eq
from cudf.testing import assert_eq

cudf_obj = g(cudf)

Expand Down
2 changes: 1 addition & 1 deletion python/ucxx/_lib_async/tests/test_custom_send_recv.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,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 python/ucxx/_lib_async/tests/test_send_recv_two_workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,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 4d85035

Please sign in to comment.