Skip to content

Commit

Permalink
np.array_equal no longer supports any numpy =? awkward
Browse files Browse the repository at this point in the history
  • Loading branch information
tcawlfield committed Aug 26, 2024
1 parent f9304c9 commit fb763ef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_2305_nep_18_lazy_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
def test_binary():
ak_array = ak.Array(np.arange(10, dtype="<u4"))
np_array = np.arange(10, dtype=">u4")
assert np.array_equal(ak_array, np_array)
with pytest.raises(TypeError):
# ak.array_equal now overrides np.array_equal, and requires
# both arrays to be valid within awkward.
assert np.array_equal(ak_array, np_array)


def test_different_backend():
Expand Down

0 comments on commit fb763ef

Please sign in to comment.