From a5b441ae1dda7428de1ed7434be08096afda8bef Mon Sep 17 00:00:00 2001 From: Marco Edward Gorelli Date: Wed, 28 Aug 2024 16:35:59 +0200 Subject: [PATCH] test: Address spurious hypothesis test failure (#18434) --- py-polars/polars/functions/lazy.py | 3 --- py-polars/tests/unit/datatypes/test_temporal.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/py-polars/polars/functions/lazy.py b/py-polars/polars/functions/lazy.py index a7138f19bfd5..8ba891d70a59 100644 --- a/py-polars/polars/functions/lazy.py +++ b/py-polars/polars/functions/lazy.py @@ -180,9 +180,6 @@ def cum_count(*columns: str, reverse: bool = False) -> Expr: This function is syntactic sugar for `col(columns).cum_count()`. - If no arguments are passed, returns the cumulative count of a context. - Rows containing null values count towards the result. - Parameters ---------- *columns diff --git a/py-polars/tests/unit/datatypes/test_temporal.py b/py-polars/tests/unit/datatypes/test_temporal.py index 1de1e08e74d4..ea1798fe7114 100644 --- a/py-polars/tests/unit/datatypes/test_temporal.py +++ b/py-polars/tests/unit/datatypes/test_temporal.py @@ -2294,7 +2294,7 @@ def test_weekday_vs_stdlib_datetime( ) -> None: result = ( pl.Series([value], dtype=pl.Datetime(time_unit)) - .dt.replace_time_zone(time_zone, non_existent="null") + .dt.replace_time_zone(time_zone, non_existent="null", ambiguous="null") .dt.weekday() .item() )