Skip to content

Commit

Permalink
test: loosen message on test_2757 due to upstream Cython changes (#3224)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpivarski authored Aug 22, 2024
1 parent 0923d22 commit 769ee40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_2757_attrs_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def test_serialise_with_nonserialisable_attrs(array_pickler):
attrs = {**SOME_ATTRS, "non_transient_key": lambda: None}
array = ak.Array([1, 2, 3], attrs=attrs)
with pytest.raises(
(AttributeError, array_pickler.PicklingError), match=r"Can't pickle"
(AttributeError, array_pickler.PicklingError),
match=r"(pickle|local object)",
):
array_pickler.loads(array_pickler.dumps(array))

Expand Down

0 comments on commit 769ee40

Please sign in to comment.