Skip to content

Commit

Permalink
try removing try-except
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcoGorelli committed Sep 18, 2023
1 parent 102ed94 commit 716007c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions py-polars/tests/parametric/test_groupby_rolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,17 +166,7 @@ def test_rolling_aggs(
if window.is_empty():
expected_dict["value"].append(None)
else:
try:
value = getattr(window["value"], aggregation)()
except pl.exceptions.PolarsPanicError as exc:
assert any( # noqa: PT017
msg in str(exc)
for msg in (
"attempt to multiply with overflow",
"attempt to add with overflow",
)
)
reject()
value = getattr(window["value"], aggregation)()
expected_dict["value"].append(value)
expected = pl.DataFrame(expected_dict).select(
pl.col("ts").cast(pl.Datetime(time_unit)),
Expand Down

0 comments on commit 716007c

Please sign in to comment.