Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shwina committed Mar 18, 2021
1 parent 97c819d commit b5054f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/cudf/cudf/tests/test_scalar.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,9 @@ def test_device_scalar_direct_construction(value):
@pytest.mark.parametrize("value", SCALAR_VALUES)
def test_construct_from_scalar(value):
value = cudf.utils.utils.to_cudf_compatible_scalar(value)
x = cudf.Scalar(1, value.dtype)
x = cudf.Scalar(value, value.dtype)
y = cudf.Scalar(x)
assert x.value == y.value
assert x.value == y.value or np.isnan(x.value) and np.isnan(y.value)

# check that this works:
y.device_value

0 comments on commit b5054f9

Please sign in to comment.