Skip to content

Commit

Permalink
expect an error for float16
Browse files Browse the repository at this point in the history
That dtype is currently not part of the spec.
  • Loading branch information
keewis committed Aug 28, 2024
1 parent 3b16694 commit f97633d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xarray_array_testing/tests/test_cubed.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ def expected_errors(op, **parameters) -> ContextManager:
return pytest.raises(
TypeError, match="Only real floating-point dtypes are allowed in mean"
)
elif xp.isdtype(var.dtype, np.dtype("float16")):
return pytest.raises(
TypeError, match="Only numeric dtypes are allowed in isnan"
)
elif op in {"var", "std"}:
pytest.skip(reason=f"cubed does not implement {op} yet")
else:
Expand Down

0 comments on commit f97633d

Please sign in to comment.