Skip to content

Commit

Permalink
Add no cover for to_supported_dtypes()
Browse files Browse the repository at this point in the history
  • Loading branch information
vlad-perevezentsev committed Jan 22, 2025
1 parent 3c1c2d3 commit 2675370
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dpnp/dpnp_iface_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@ def correlate(a, v, mode="valid"):
rdtype = result_type_for_device([a.dtype, v.dtype], device)
supported_dtype = to_supported_dtypes(rdtype, supported_types, device)

if supported_dtype is None:
if supported_dtype is None: # pragma: no cover
raise ValueError(
f"function does not support input types "
f"({a.dtype.name}, {v.dtype.name}), "
Expand Down
2 changes: 1 addition & 1 deletion dpnp/dpnp_utils/dpnp_utils_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,4 @@ def is_castable(dtype, stype):
):
return stypes

return None
return None # pragma: no cover

0 comments on commit 2675370

Please sign in to comment.