Skip to content

Commit

Permalink
Add test for deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Aug 26, 2023
1 parent 52357dd commit 30c406e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions py-polars/tests/unit/operations/test_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,3 +414,10 @@ def test_map_elements_on_empty_col_10639() -> None:
"B": [],
"Foo": [],
}


def test_apply_deprecated() -> None:
with pytest.deprecated_call():
pl.col("a").apply(lambda x: x + 1)
with pytest.deprecated_call():
pl.Series([1, 2, 3]).apply(lambda x: x + 1)

0 comments on commit 30c406e

Please sign in to comment.