Skip to content

Commit

Permalink
chore(python): fix test failing CI (#9509)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Jun 22, 2023
1 parent 9e501f9 commit f94abbb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions py-polars/tests/unit/operations/test_rolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -720,10 +720,12 @@ def test_groupby_rolling_negative_period() -> None:
pl.col("value")
).collect()
with pytest.raises(ComputeError, match="window size should be strictly positive"):
df.select(pl.col("value").rolling_min(by="ts", window_size="-1d"))
df.select(
pl.col("value").rolling_min(by="ts", window_size="-1d", closed="left")
)
with pytest.raises(ComputeError, match="window size should be strictly positive"):
df.lazy().select(
pl.col("value").rolling_min(by="ts", window_size="-1d")
pl.col("value").rolling_min(by="ts", window_size="-1d", closed="left")
).collect()


Expand Down

0 comments on commit f94abbb

Please sign in to comment.