Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Mar 14, 2024
1 parent 4126c01 commit 003e9ac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion py-polars/tests/unit/test_errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,8 @@ def test_err_on_invalid_time_zone_cast() -> None:
def test_invalid_inner_type_cast_list() -> None:
s = pl.Series([[-1, 1]])
with pytest.raises(
pl.ComputeError, match=r"cannot cast List inner type: 'Int64' to Categorical"
pl.InvalidOperationError,
match=r"cannot cast List inner type: 'Int64' to Categorical",
):
s.cast(pl.List(pl.Categorical))

Expand Down

0 comments on commit 003e9ac

Please sign in to comment.