From 453e274467b78a831a7bea658036114a965ffd69 Mon Sep 17 00:00:00 2001 From: rjzamora Date: Thu, 14 Nov 2024 09:54:06 -0800 Subject: [PATCH] skip coverage on sanity-check errors --- .../cudf_polars/cudf_polars/experimental/parallel.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/python/cudf_polars/cudf_polars/experimental/parallel.py b/python/cudf_polars/cudf_polars/experimental/parallel.py index cff11787f85..108d85a6f10 100644 --- a/python/cudf_polars/cudf_polars/experimental/parallel.py +++ b/python/cudf_polars/cudf_polars/experimental/parallel.py @@ -45,7 +45,7 @@ def _clear_parts_info_cache() -> None: def get_key_name(node: Node | NamedExpr) -> str: """Generate the key name for a Node.""" if isinstance(node, NamedExpr): - return f"named-{get_key_name(node.value)}" + return f"named-{get_key_name(node.value)}" # pragma: no cover return f"{type(node).__name__.lower()}-{hash(node)}" @@ -71,7 +71,7 @@ def _default_ir_parts_info(ir: IR) -> PartitionInfo: if count > 1: raise NotImplementedError( f"Class {type(ir)} does not support multiple partitions." - ) + ) # pragma: no cover return PartitionInfo(count=count) @@ -95,7 +95,9 @@ def _default_ir_tasks(ir: IR) -> MutableMapping[Any, Any]: # Single-partition default behavior. # This is used by `generate_ir_tasks` for all unregistered IR sub-types. if ir_parts_info(ir).count > 1: - raise NotImplementedError(f"Failed to generate tasks for {ir}.") + raise NotImplementedError( + f"Failed to generate multiple output tasks for {ir}." + ) # pragma: no cover child_names = [] for child in ir.children: @@ -103,7 +105,7 @@ def _default_ir_tasks(ir: IR) -> MutableMapping[Any, Any]: if ir_parts_info(child).count > 1: raise NotImplementedError( f"Failed to generate tasks for {ir} with child {child}." - ) + ) # pragma: no cover key_name = get_key_name(ir) return {