Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelzw committed Oct 14, 2024
1 parent 027f115 commit 3947452
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions py-polars/tests/unit/test_selectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,7 +818,7 @@ def test_selector_list_of_lists_18499() -> None:

def test_invalid_selector() -> None:
df = pl.DataFrame(data={"x": [1, 2], "z": ["a", "b"]})
sel = pl.selectors.all() + pl.col("x")
assert isinstance(sel, pl.selectors._selector_proxy_)
with pytest.raises(InvalidOperationError, match="invalid selector expression"):
df.drop(pl.col("x", "z") + 2) # type: ignore[arg-type]
with pytest.raises(InvalidOperationError, match="invalid selector expression"):
df.drop(pl.col("x") + 2) # type: ignore[arg-type]
df.drop(sel)

0 comments on commit 3947452

Please sign in to comment.