Skip to content

Commit

Permalink
test: add numba case
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Oct 30, 2023
1 parent 54c8a60 commit c346295
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/test_2757_attrs_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,3 +262,16 @@ def test_broadcasting_fields():
left_result, right_result = ak.broadcast_fields(left, right)
assert left_result.attrs is SOME_ATTRS
assert right_result.attrs is OTHER_ATTRS


@pytest.mark.xfail(reason="numba metadata serialisation is broken")
def test_numba_arraybuilder():
numba = pytest.importorskip("numba")
builder = ak.ArrayBuilder(attrs=SOME_ATTRS)
assert builder.attrs is SOME_ATTRS

@numba.njit
def func(array):
return array

assert func(builder).attrs is SOME_ATTRS

0 comments on commit c346295

Please sign in to comment.