Skip to content

[surviving mutant] in groupby.agg (pyarrow) #2184

@MarcoGorelli

Description

@MarcoGorelli

If we make the following diff:

diff --git a/narwhals/_arrow/group_by.py b/narwhals/_arrow/group_by.py
index aefade0d..9445ae3b 100644
--- a/narwhals/_arrow/group_by.py
+++ b/narwhals/_arrow/group_by.py
@@ -56,7 +56,7 @@ class ArrowGroupBy:
                 in POLARS_TO_ARROW_AGGREGATIONS
             ):
                 all_simple_aggs = False
-                break
+                continue

then all tests still pass

Can we write a test which would fail if we made the above diff?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions