Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpotts committed Nov 15, 2024
1 parent 1e28c6f commit 5737db9
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tests/pdarrayclass_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,7 @@ def assert_reduction_ops_match(
np_op = getattr(numpy, op)
nda = pda.to_ndarray()

# TODO: remove cast when #3864 is resolved.
ak_result = ak_op(pda, axis=axis)
if op in ["max", "min"] and pda.dtype == ak.bool_:
if isinstance(ak_result, ak.pdarray):
ak_result = ak.cast(ak_result, dt=ak.bool_)
else:
ak_result = np.bool_(ak_result)

ak_assert_equivalent(ak_result, np_op(nda, axis=axis))

@pytest.mark.parametrize("op", REDUCTION_OPS)
Expand Down

0 comments on commit 5737db9

Please sign in to comment.