Skip to content

Commit

Permalink
Add comment about __eq__ operator dispatch.
Browse files Browse the repository at this point in the history
Co-authored-by: Vyas Ramasubramani <[email protected]>
  • Loading branch information
bdice and vyasr authored Feb 23, 2022
1 parent 522c09e commit 1fef179
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/cudf/cudf/tests/test_binops.py
Original file line number Diff line number Diff line change
Expand Up @@ -1763,6 +1763,8 @@ def test_binops_with_lhs_numpy_scalar(frame, dtype):
else:
val = cudf.dtype(dtype).type(4)

# Compare equality with series on left side to dispatch to the pandas/cudf
# __eq__ operator and avoid a DeprecationWarning from numpy.
expected = data.to_pandas() == val
got = data == val

Expand Down

0 comments on commit 1fef179

Please sign in to comment.